Data Science Workshop (DSW) of Platform for AI (PAI) provides the following SSH connection methods: direct connection and proxy client connection. You can select a connection method that meets your business requirements based on resource dependencies, usage methods, and limits.
Connection methods
You can use one of the following methods to connect to a DSW instance:
Direct connection
You can enable SSH for a DSW instance to directly connect to the instance over SSH. For more information, see Directly connect to a DSW instance.
Proxy client connection
You can configure a proxy client to connect to a DSW instance over SSH from an on-premises host. For more information, see Use a proxy client to connect to a DSW instance.
Comparison
The following table describes the two connection methods. The direct connection method is more stable and faster, but supports limited instance types. The proxy client connection method supports all instance types and eliminates the need to purchase an Internet NAT gateway. However, you must download a proxy tool.
Item | Direct connection | Proxy client connection | |
Resource dependency | Virtual private cloud (VPC) | Required. | Not required. PAI internal network is used. |
Internet NAT gateway | If you want to access your DSW instance over the Internet, you must purchase an Internet NAT gateway. | Not required. PAI internal network is used. | |
DNAT entry | If you want to enable your DSW instance to provide services over the Internet, you must create a DNAT entry for the Internet NAT gateway. | Not required. PAI internal network is used. | |
Usage methods | SSH client | Use an SSH client to directly access the DSW instance. | You need to download and configure a proxy client, and then use an SSH client to access the DSW instance. |
Authentication | Use the SSH public or private key for authentication. |
| |
Limits | Network |
| Access over the Internet. |
Bandwidth | The bandwidth depends on the DSW instance type and the Internet access gateway:
| Shared public bandwidth. | |
DSW instances | Only the following instance types are supported:
| All DSW instances. | |
Stability | High | Medium |