Skip to content

SSH 凭据(SSH credentials)#

你可以使用以下凭据验证以下节点:

🌐 You can use these credentials to authenticate the following nodes:

先决条件(Prerequisites)#

  • 创建一个启用 SSH 的远程服务器。
  • 创建一个用户账户,可以使用以下方式之一 ssh 登录服务器:

支持的身份验证方法(Supported authentication methods)#

  • 密码:如果您有一个可以使用其自身密码 ssh 登录服务器的用户账户,请使用此方法。
  • 私钥:如果您有一个使用 SSH 密钥访问服务器或服务的用户账户,请使用此方法。

安全外壳(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:

  1. 主机 中输入你要连接的服务器的 IP 地址。
  2. 输入用于连接的 端口。SSH 默认使用端口 22
  3. 输入具有服务器上 ssh 访问权限的用户账户的用户名
  4. 请输入该用户账户的密码

使用私钥(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:

  1. 主机 中输入你要连接的服务器的 IP 地址。
  2. 输入用于连接的 端口。SSH 默认使用端口 22
  3. 输入生成私钥的账户的用户名
  4. 输入你的 SSH 私钥 的全部内容。
  5. 如果你为 私钥 创建了 密码短语,请输入该密码短语。
    • 如果你没有为密钥创建密码,请留空。