gcp는 불친절하다.

0verfl0w767·2026년 5월 2일

apt install vim을 해야한다니. command not found는 대체 뭐냐,

인스턴스 패널에 계정을 생성하는 기능도 없다.

내부 패널에서 접속 후

passwd root : 여건 그냥 루트 비밀번호 만들려고;;

vim /etc/ssh/sshd_config : sshd 설정을 아래와 같이 한다.

"""
PermitRootLogin yes
PasswordAuthentication yes
"""

근데 이래도 public key로 넘어가는 경우가 있어서 아래로 로그를 봐준다.

grep -R "PermitRootLogin|PasswordAuthentication" /etc/ssh/sshd_config /etc/ssh/sshd_config.d/*

no로 되어있는 경로에 있는 파일이 범인이니 그 파일을 고친다.

PasswordAuthentication yes

sshd -T | grep passwordauthentication : 마지막 체크 후

systemctl restart sshd : 리스타토

profile
개발은 힘들어.

0개의 댓글