AWS服务器一般通过PUTTY使用ppk文件登陆服务器,一个是登陆方式比较麻烦,无法使用其他SSH如CRT,另外上传下载数据也麻烦。可修改AWS的SSH登陆方法,使用root和密码登陆。方法如下:(笔者使用的Lightsail服务器)
1、先从PUTTY进入系统,切换root用户
2、chmod +x /etc/ssh/sshd_config SSH配置文件增加写权限
3、vim /etc/ssh/sshd_config 编辑修改文件
4、两个参数改为 yes wq保存文件退出
5、重启SSH服务 sudo service ssh restart
6、FileZilla登陆
7、CRT登陆