2016年9月7日

Google Compute Engine 使用 root 和密碼登入

先使用 ssh key 登入後、先幫root設定密碼、然後修改 /etc/sshd/sshd_config,順便修改回應比較慢的問題

1.$ sudo passwd root
2.$ su -
3.# vi /etc/sshd/sshd_config
4.# service sshd restart


42 PermitRootLogin yes

64 PasswordAuthentication yes
66 #PasswordAuthentication no

80 GSSAPIAuthentication no
81 #GSSAPIAuthentication yes

122 UseDNS no

0 意見:

張貼留言