修改谷歌云google cloud engine VM root账户的密码和允许远程ssh登录

 

Figured it out. The VM's in cloud engine don't come with a root password setup by default so you'll first need to change the password using

sudo passwd

If you do everything correctly, it should do something like this:

user@server[~]# sudo passwd
Changing password for user root.
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.



cat /etc/ssh/sshd_config 
PermitRootLogin yes
PasswordAuthentication yes


systemctl restart sshd

 
 
posted @ 2019-01-24 14:22  Oops!#  阅读(3305)  评论(0编辑  收藏  举报