본문 바로가기

linux

ssh key authentication

local server

#> ssh-keygen -t rsa
id_rsa, id_rsa.pub 파일이 생성된다.


remote server
#> scp .ssh/id_rsa.pub id@remote.server.com:.ssh/authorized_keys2


다음 접속에서 패스워드를 묻지 않으면 성공