카테고리 없음

비밀번호 없이 SSH접속하기

준혁양 2022. 6. 21. 14:27

cat ~/.ssh/id_rsa.pub | ssh june@git.joyjune.com 'cat >> ~/.ssh/authorized_keys'

chmod 600 authorized_keys

 

june@git.joyjune.com 해당 부분을 수정해주신 뒤 접속할때 비밀번호를 묻지 않습니다.

 

루트계정이 작동하지 않을 경우 권한을 수정해주세요.

chmod 600 /root/.ssh/authorized_keys