亞馬遜雲主機linux密鑰登錄改成密碼登錄

1.拿着官網給的密鑰文件用ec2-user默認用戶登陸 2.建立root密碼 sudo passwd root 3.切換到root身份 su root 4.使用root身份編輯亞馬遜主機的ssh登陸方式 vi /etc/ssh/sshd_config 把 PasswordAuthentication no 改成 PasswordAuthentication yes 若是沒有則新插進去 5.重啓ss
相關文章
相關標籤/搜索