Help Center/ ModelArts/ DevEnviron/ Managing Notebook Instances/ Modifying the SSH Configuration for a Notebook Instance
Updated on 2024-08-14 GMT+08:00

Modifying the SSH Configuration for a Notebook Instance

ModelArts allows you to modify the SSH configuration for notebook instances.

If a notebook instance is created with remote SSH disabled, you can enable remote SSH on the notebook details page.

During the creation of a notebook instance, if you set a whitelist for remotely accessing it, you can change the IP addresses in the whitelist on the notebook instance details page. You can also change the key pair.

Constraints

The target notebook instance must be stopped.

Changing the Key Pair and Remote Connection IP Address

  1. Log in to the ModelArts management console. In the navigation pane on the left, choose Development Workspace > Notebook.
  2. Click the target notebook instance. Enable remote SSH and change the key pair and whitelist.

    For manually enabled remote SSH, see Figure 1. After the SSH configuration is updated, the remote SSH function cannot be disabled.

    For remote SSH enabled by default in the selected image, see Figure 2.

    Figure 1 Update SSH Configuration
    Figure 2 Changing the whitelist and key pair
    • Click and choose an existing key pair, or click Create to create a new key pair.
    • For details about how to configure a whitelist, see Setting an IP Address for Remotely Accessing a Notebook Instance. After you change the IP addresses, the existing links are still valid. After the links are released, the new links only from the changed IP addresses can be set up.

Setting an IP Address for Remotely Accessing a Notebook Instance

Figure 3 Setting an IP address for remotely accessing a notebook instance

Ensure that public IP addresses are set. If your source device and the Huawei Cloud ModelArts are isolated from each other in network, obtain the public IP address of your source device using a mainstream search engine, for example, by entering "IP address lookup", but not by running ipconfig or ifconfig/ip locally.