SSH 凭据(SSH credentials)#
你可以使用以下凭据验证以下节点:
🌐 You can use these credentials to authenticate the following nodes:
先决条件(Prerequisites)#
支持的身份验证方法(Supported authentication methods)#
相关资源(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 地址。
- 输入用于连接的 端口。SSH 默认使用端口
22。 - 输入具有服务器上
ssh访问权限的用户账户的用户名。 - 请输入该用户账户的密码。
使用私钥(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 地址。
- 输入用于连接的 端口。SSH 默认使用端口
22。 - 输入生成私钥的账户的用户名。
- 输入你的 SSH 私钥 的全部内容。
- 如果你为 私钥 创建了 密码短语,请输入该密码短语。
- 如果你没有为密钥创建密码,请留空。