SSH 凭据#
¥SSH credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
先决条件#
¥Prerequisites
- 创建一个启用 SSH 的远程服务器。
¥Create a remote server with SSH enabled.
- 创建一个可以使用以下方式之一登录到
ssh服务器的用户账户:
¥Create a user account that can ssh into the server using one of the following:
-
他们自己的 password
¥Their own password
-
SSH 私钥
¥An SSH private key
支持的身份验证方法#
¥Supported authentication methods
- 密码:如果你拥有一个可以使用自己的密码通过
ssh连接到服务器的用户账户,请使用此方法。
¥Password: Use this method if you have a user account that can ssh into the server using their own password.
- 私钥:如果你拥有一个使用 SSH 密钥连接到服务器或服务的用户账户,请使用此方法。
¥Private key: Use this method if you have a user account that uses an SSH key for the server or service.
相关资源#
¥Related resources
安全外壳 (SSH) 协议是一种通过网络安全发送命令的方法。有关 SSH 设置示例,请参阅 正在连接使用 SSH 连接到 GitHub。
¥Secure Shell (SSH) protocol is a method for securely sending commands over a network. Refer to Connecting to GitHub with SSH for an example of SSH setup.
使用密码#
¥Using password
如果你拥有一个可以使用自己的密码通过 ssh 连接到服务器的用户账户,请使用此方法。
¥Use this method if you have a user account that can ssh into the server using their own password.
要配置此凭据,你需要:
¥To configure this credential, you'll need to:
- 输入要连接的服务器的 IP 地址作为主机。
¥Enter the IP address of the server you're connecting to as the Host.
2. 输入用于连接的端口。SSH 默认使用 22 端口。
¥Enter the Port to use for the connection. SSH uses port 22 by default.
3. 输入服务器上具有 ssh 访问权限的用户账户的用户名。
¥Enter the Username for a user account with ssh access on the server.
4. 输入该用户账户的密码。
¥Enter the Password for that user account.
使用私钥#
¥Using private key
如果你拥有一个使用 SSH 密钥连接到服务器或服务的用户账户,请使用此方法。
¥Use this method if you have a user account that uses an SSH key for the server or service.
要配置此凭据,你需要:
¥To configure this credential, you'll need to:
- 输入要连接的服务器的 IP 地址作为主机。
¥Enter the IP address of the server you're connecting to as the Host.
2. 输入用于连接的端口。SSH 默认使用 22 端口。
¥Enter the Port to use for the connection. SSH uses port 22 by default.
3. 输入生成私钥的账户的用户名。
¥Enter the Username of the account that generated the private key. 4. 输入你的 SSH 私钥的完整内容。
¥Enter the entire contents of your SSH Private Key. 5. 如果你为私钥创建了密码,请输入该密码。
¥If you created a Passphrase for the Private Key, enter the passphrase.
-
如果你没有为密钥创建密码,请留空。
¥If you didn't create a passphrase for the key, leave blank.