본문 바로가기

개발/시스템

ssh using rsa key

1. Create rsa private/public key in local

> ssh-keygen -t rsa

> copy id_rsa ~/.ssh/

> cat id_rsa.pub        -> (a)


2. Login to the remote server (or scp id_rsa.pub to the remote server)

> goto the account root directory (whatever account you want to login with)

> vi .ssh/authorized_keys

> paste (a) into this file(authorized_keys)


3. Login with rsa key

> ssh -i id_rsa xxx@ip


ref: http://news.softpedia.com/news/How-to-Use-RSA-Key-for-SSH-Authentication-38599.shtml

'개발 > 시스템' 카테고리의 다른 글

mount fs  (0) 2013.04.16
Create certificates using OpenSSL  (0) 2013.03.15
Linux Command  (0) 2012.03.20
Linux버젼 확인  (0) 2012.03.15
OpenVPN 설치  (0) 2012.03.15