반응형

1. SSH 키 생성

$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/isbyeon/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/isbyeon/.ssh/id_rsa.
Your public key has been saved in /home/isbyeon/.ssh/id_rsa.pub.
The key fingerprint is:
ed:ac:23:7e:ed:17:43:10:a6:26:ec:d9:f1:7a:4d:9b isbyeon@torque.kobic.kr
The key's randomart image is:
+--[ RSA 2048]----+
|          o.     |
|     .   o.      |
|      o +  .     |
|     . = +  .    |
|      o S o..    |
|         + ooo   |
|        ..+ Eo   |
|      . oo. .    |
|     ..o.o..     |
+-----------------+

 

2. 대상 시스템에 키 복사

$ ssh-copy-id -i .ssh/id_rsa.pub compute-0-0
isbyeon@compute-0-0's password:
Now try logging into the machine, with "ssh 'compute-0-0'", and check in: .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

 

$ ssh compute-0-0
Last login: Fri Aug 10 00:17:25 2012 from 192.168.150.184
[isbyeon@compute-0-0 ~]$

 

반응형

'Linux > SSH' 카테고리의 다른 글

[SSH] Host based Authentication  (0) 2013.06.10
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기