All Products
Search
Document Center

Platform For AI:How to connect to a DSW instance

Last Updated:Jan 07, 2025

Data Science Workshop (DSW) of Platform for AI (PAI) provides the following Secure Shell (SSH) connection methods: direct connection and proxy client connection. You can select a connection method that meets your business requirements for remote instance connection based on resource dependencies, usage methods, and limits.

Connection methods

You can use one of the following methods to remotely connect to a DSW instance:

Comparison

The following table describes the two connection methods. The direct connection method provides higher stability than the proxy client connection. However, only specific instance types support direct connection. The proxy client connection is supported by all instance types and eliminates the need to purchase an Internet NAT gateway. However, you need to download a proxy tool.

Item

Direct connection (recommend)

Proxy client connection

Resource dependency

Virtual Private Cloud (VPC)

Required.

Optional. PAI internal network is used.

Internet network address translation (NAT) gateway

If you want to enable Internet access, you must purchase an Internet NAT gateway.

Optional. PAI internal network is used.

Destination network address translation (DNAT) entry

If you want to enable Internet access, you must create a DNAT entry for the Internet NAT gateway.

Optional. PAI internal network is used.

Usage

SSH client

Use an SSH client to directly access the DSW instance.

You need to download and configure a proxy client. Then, use an SSH client to access the DSW instance.

Authentication

Use the SSH public key or SSH private key for authentication.

  1. To perform authentication, specify information such as the Alibaba Cloud AccessKey pair in the proxy client.

  2. Perform authentication by using the SSH public key or SSH private key.

Limits

Network

  • Access over the Internet

  • Access over the VPC

Access over the Internet

Bandwidth

The bandwidth varies based on the DSW instance type and the Internet access gateway:

  • Public Internet Gateway: shared public bandwidth

  • Private Internet Gateway: exclusive to individual users

Shared public bandwidth

Instance type

Only the following instance types are supported:

  • DSW instances that are created by using Lingjun resources in the China (Ulanqab) and Singapore regions.

  • Pay-as-you-go DSW instances that are created by using public resource groups in the China (Hangzhou), China (Shanghai), China (Beijing), China (Shenzhen), and Singapore regions.

All DSW instances

Stability

High stability

Medium stability

Remote desktop

Not supported

Not supported