Util & Etc & Build Tool

ssh 비밀번호 없이 접속(공개키, 개인키 사용)

무대포개발자 2015. 1. 16. 09:24

http://opentutorials.org/module/432/3742

 

위에 대로 따라했는데도 안된다?

그럼 밑에 퍼미션을 주면 된다.

$ chmod go-w $HOME $HOME/.ssh
$ chmod 600 $HOME/.ssh/authorized_keys
$ chown `whoami` $HOME/.ssh/authorized_keys