前提准备
- 1IP 地址:例如
192.168.1.1(在 VPS 后台查看) - 2端口号:默认是
22(部分商家会修改,请查看邮件) - 3用户名:通常是
root - 4密码:购买时设置的密码或邮件收到的初始密码
连接步骤(以 Mac/Linux 终端为例)
1. 打开终端(Terminal),输入以下命令:
ssh root@192.168.1.1
2. 首次连接会出现指纹确认提示,输入 yes 并回车:
The authenticity of host '192.168.1.1' can't be established.
ED25519 key fingerprint is SHA256:xxxxxxxxx.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
3. 输入密码(注意:输入时屏幕不会显示任何字符,这是正常的安全机制),输完回车:
root@192.168.1.1's password: (此处输入密码无显示)
4. 看到 root@hostname:~# 提示符,恭喜您,连接成功!