首先确认华为云服务器ECS的安全组规则
入方向和出方向是否的设置(默认设置全部开放)
云服务器购买时设置的登陆账户为root(依据此账户登陆)
进入终端(terminal)
命令行输入:ssh root@[服务器弹性公网IP]
输入password
即可成功连接!
可能提示:
The authenticity of host '弹性公网IP (弹性公网IP)' can't be established.
ECDSA key fingerprint is XXXXXXXXXXXXXXXXXXXXX
Are you sure you want to continue connecting (yes/no)?
输入:yes
Warning: Permanently added '' 弹性公网IP(ECDSA) to the list of known hosts.
Connection closed by 弹性公网IP port 22
解决方式:
退出 重新连接: