$ 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
- http://leanu.tistory.com/entry/OpenSSH-Public-Key-Authentication#recentTrackback
- http://sial.org/howto/openssh/publickey-auth/
- http://guni.tistory.com/138
No comments:
Post a Comment