[GCP] Google cloud Root ssh접속 설정

 

Google cloud 접속시 key 없이 ssh 를 사용 할수 있습니다.

Compute Engine 으로 이동후 설정할 VM 인스턴스의 SSH 를 클릭 합니다.

 

 

root 유저 password 를 설정 합니다. 

[test@gg-test ~]$ sudo -i 
[root@gg-test ~]# passwd 
Changing password for user root.
New password: 

Retype new password: 
passwd: all authentication tokens updated successfully.
[root@gg-test ~]#

 

 sshd_config 설정 및 sshd 재시작 

[root@gg-test ~]# vi /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
[root@gg-test ~]# systemctl restart sshd

 

SSH 연결

vm 외부 ip 를 확인 합니다.

 

ssh 접속을 합니다. 

 

 

Last modified: 2020-08-08

Author

Comments

Write a Reply or Comment