Skip to content

连接 Linux 云服务器 ​

准备信息 ​

在产品详情页确认:

  • 公网 IP 地址。
  • SSH 端口,默认为 22。
  • 登录用户,常见为 root、ubuntu 或镜像说明中的用户。
  • 登录密码或 SSH 私钥。

Windows 终端连接 ​

打开 PowerShell 或 Windows Terminal:

powershell
ssh root@服务器IP

端口不是 22 时:

powershell
ssh -p 端口 root@服务器IP

首次连接会显示主机指纹,确认 IP 无误后输入 yes。

macOS 与 Linux 连接 ​

在终端执行相同命令:

bash
ssh root@服务器IP

使用私钥:

bash
chmod 600 server-key.pem
ssh -i server-key.pem root@服务器IP

登录后建议 ​

查看系统版本:

bash
cat /etc/os-release

更新 Debian 或 Ubuntu:

bash
apt update && apt upgrade -y

更新 Rocky Linux、AlmaLinux 或 CentOS 系列:

bash
dnf update -y

常见报错 ​

  • Connection timed out:检查实例状态、安全组、端口和本地网络。
  • Connection refused:SSH 服务未启动或端口错误。
  • Permission denied:用户、密码或私钥不正确。
  • 主机指纹变化:确认是否刚执行重装;无法确认时不要继续连接。

澜云 Orbitlan 产品与服务文档