Thursday, August 4, 2011

RSA인증을 이용한 SSH 접속

1. client
$ cd
$ mkdir .ssh
$ chmod 700 .ssh
$ ssh-keygen -q -f .ssh/id_rsa -t rsa
Enter passphrase (empty for no passphrase): ## input personal passwd
Enter same passphrase again: ## input same personal passwd

$ chmod go-rwx .ssh/*

$ scp .ssh/id_rsa.pub userid@server.phys.pusan.ac.kr:/home/server

2. server
$ cd
$ mkdir .ssh
$ chmod 700 .ssh
$ cat id_rsa.pub >> .ssh/authorized_keys
$ chmod 600 .ssh/authorized_keys
$ rm id_rsa.pub




  1. http://leanu.tistory.com/entry/OpenSSH-Public-Key-Authentication#recentTrackback
  2. http://sial.org/howto/openssh/publickey-auth/
  3. http://guni.tistory.com/138

No comments:

Post a Comment