1. 密钥登录
ssh root@YourAliyunServerIp -i YourAliyunPemFilePath
2. 执行命令
vi /etc/ssh/sshd_config
将PasswordAuthentication的值改为yes
3. 重启ssh服务,就可以使用账号密码连接服务器了
sudo service sshd restart
参考地址:
https://blog.csdn.net/huxinguang_ios/article/details/80928252
1. 密钥登录
ssh root@YourAliyunServerIp -i YourAliyunPemFilePath
2. 执行命令
vi /etc/ssh/sshd_config
将PasswordAuthentication的值改为yes
3. 重启ssh服务,就可以使用账号密码连接服务器了
sudo service sshd restart
参考地址:
https://blog.csdn.net/huxinguang_ios/article/details/80928252