public sealed class ForwardSshTunnelConnectivity : IMessage<ForwardSshTunnelConnectivity>, IEquatable<ForwardSshTunnelConnectivity>, IDeepCloneable<ForwardSshTunnelConnectivity>, IBufferMessage, IMessage
Reference documentation and code samples for the Database Migration v1 API class ForwardSshTunnelConnectivity.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eForwardSshTunnelConnectivity\u003c/code\u003e class, part of the Database Migration v1 API, is used for establishing connectivity via an SSH tunnel.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports various versions, with the latest being 2.5.0, and includes versions ranging from 1.0.0 to 2.5.0, each with its own documentation.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from the base \u003ccode\u003eobject\u003c/code\u003e class and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEssential properties for configuring the SSH tunnel include \u003ccode\u003eHostname\u003c/code\u003e, \u003ccode\u003ePort\u003c/code\u003e, and \u003ccode\u003eUsername\u003c/code\u003e, with \u003ccode\u003ePassword\u003c/code\u003e and \u003ccode\u003ePrivateKey\u003c/code\u003e properties available for authentication.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAuthenticationMethodCase\u003c/code\u003e property determines if the \u003ccode\u003ePassword\u003c/code\u003e or \u003ccode\u003ePrivateKey\u003c/code\u003e is set, while the \u003ccode\u003eHasPassword\u003c/code\u003e and \u003ccode\u003eHasPrivateKey\u003c/code\u003e properties let you check which field is set.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class ForwardSshTunnelConnectivity (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.ForwardSshTunnelConnectivity)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.ForwardSshTunnelConnectivity)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.ForwardSshTunnelConnectivity)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.ForwardSshTunnelConnectivity)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.ForwardSshTunnelConnectivity)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.ForwardSshTunnelConnectivity)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.ForwardSshTunnelConnectivity)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.ForwardSshTunnelConnectivity)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.ForwardSshTunnelConnectivity) \n\n public sealed class ForwardSshTunnelConnectivity : IMessage\u003cForwardSshTunnelConnectivity\u003e, IEquatable\u003cForwardSshTunnelConnectivity\u003e, IDeepCloneable\u003cForwardSshTunnelConnectivity\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class ForwardSshTunnelConnectivity.\n\nForward SSH Tunnel connectivity. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ForwardSshTunnelConnectivity \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ForwardSshTunnelConnectivity](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.ForwardSshTunnelConnectivity), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ForwardSshTunnelConnectivity](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.ForwardSshTunnelConnectivity), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ForwardSshTunnelConnectivity](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.ForwardSshTunnelConnectivity), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudDms.V1](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudDms.V1.dll\n\nConstructors\n------------\n\n### ForwardSshTunnelConnectivity()\n\n public ForwardSshTunnelConnectivity()\n\n### ForwardSshTunnelConnectivity(ForwardSshTunnelConnectivity)\n\n public ForwardSshTunnelConnectivity(ForwardSshTunnelConnectivity other)\n\nProperties\n----------\n\n### AuthenticationMethodCase\n\n public ForwardSshTunnelConnectivity.AuthenticationMethodOneofCase AuthenticationMethodCase { get; }\n\n### HasPassword\n\n public bool HasPassword { get; }\n\nGets whether the \"password\" field is set\n\n### HasPrivateKey\n\n public bool HasPrivateKey { get; }\n\nGets whether the \"private_key\" field is set\n\n### Hostname\n\n public string Hostname { get; set; }\n\nRequired. Hostname for the SSH tunnel.\n\n### Password\n\n public string Password { get; set; }\n\nInput only. SSH password.\n\n### Port\n\n public int Port { get; set; }\n\nPort for the SSH tunnel, default value is 22.\n\n### PrivateKey\n\n public string PrivateKey { get; set; }\n\nInput only. SSH private key.\n\n### Username\n\n public string Username { get; set; }\n\nRequired. Username for the SSH tunnel."]]