aws ssh 设置

编辑此ssh文件

sudo vi /etc/ssh/sshd_config

找到下面的两行 打开注解 no 改成 yes

PermitRootLogin yes   
PubkeyAuthentication yes
PasswordAuthentication yes

重启ssh

systemctl restart sshd

linux 密码存储文件

/etc/shadow

修改密码命令

passwd {username}
posted @ 2024-02-01 10:53  Lafite-1820  阅读(5)  评论(0编辑  收藏  举报