VPS 配置 SSH 连接
为 macOS 和 Windows 配置 SSH 连接到 VPS 的步骤
- 终端:iTerm2
- Shell:zsh
配置步骤
- 生成 SSH 密钥对(如果尚未生成)
ssh-keygen -t rsa -b 4096 -C "ztm0929@icloud.com"
- 将公钥复制到 VPS
ssh-copy-id user@vps_ip
- 通过 SSH 连接到 VPS
ssh user@vps_ip
Last updated on
为 macOS 和 Windows 配置 SSH 连接到 VPS 的步骤
ssh-keygen -t rsa -b 4096 -C "ztm0929@icloud.com"
ssh-copy-id user@vps_ip
ssh user@vps_ip
Last updated on