个人头像ztm0929

VPS 配置 SSH 连接

为 macOS 和 Windows 配置 SSH 连接到 VPS 的步骤

本文尚处于草稿状态,内容可能不完整或存在错误

  • 终端:iTerm2
  • Shell:zsh

配置步骤

  1. 生成 SSH 密钥对(如果尚未生成)
ssh-keygen -t rsa -b 4096 -C "ztm0929@icloud.com"
  1. 将公钥复制到 VPS
ssh-copy-id user@vps_ip
  1. 通过 SSH 连接到 VPS
ssh user@vps_ip

最后更新于

目录