# Cloud Database Migration Service V1 API - Class Google::Cloud::CloudDMS::V1::ForwardSshTunnelConnectivity (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.2 1.1.0 1.0.1 0.8.0 0.7.2 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.5 Reference documentation and code samples for the Cloud Database Migration Service V1 API class Google::Cloud::CloudDMS::V1::ForwardSshTunnelConnectivity.

Forward SSH Tunnel connectivity.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #hostname

    def hostname() -> ::String

**Returns**

- (::String) --- Required. Hostname for the SSH tunnel.

### #hostname=

    def hostname=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Hostname for the SSH tunnel.
**Returns**

- (::String) --- Required. Hostname for the SSH tunnel.

### #password

    def password() -> ::String

**Returns**

- (::String) --- Input only. SSH password.

  Note: The following fields are mutually exclusive: `password`, `private_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #password=

    def password=(value) -> ::String

**Parameter**

- **value** (::String) --- Input only. SSH password.


  Note: The following fields are mutually exclusive: `password`, `private_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Input only. SSH password.

  Note: The following fields are mutually exclusive: `password`, `private_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #port

    def port() -> ::Integer

**Returns**

- (::Integer) --- Port for the SSH tunnel, default value is 22.

### #port=

    def port=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Port for the SSH tunnel, default value is 22.
**Returns**

- (::Integer) --- Port for the SSH tunnel, default value is 22.

### #private_key

    def private_key() -> ::String

**Returns**

- (::String) --- Input only. SSH private key.

  Note: The following fields are mutually exclusive: `private_key`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #private_key=

    def private_key=(value) -> ::String

**Parameter**

- **value** (::String) --- Input only. SSH private key.


  Note: The following fields are mutually exclusive: `private_key`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Input only. SSH private key.

  Note: The following fields are mutually exclusive: `private_key`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #username

    def username() -> ::String

**Returns**

- (::String) --- Required. Username for the SSH tunnel.

### #username=

    def username=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Username for the SSH tunnel.
**Returns**

- (::String) --- Required. Username for the SSH tunnel.