복사 mathias kettner's tutorial
처음부터 붙여 사용자 A와 같은에 로그인 및 인증 키 쌍을 생성한다.
[email protected]:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 [email protected]
지금 (디렉토리가 이미 잘되는,있을 수 있습니다) B.에 사용자 B와 같은 디렉토리 ~/스푸핑을 만들 SSH를 사용 : 마지막으로
[email protected]:~> ssh [email protected] mkdir -p .ssh
[email protected]'s password:
암호를 입력하지 마십시오 a가 b의 @의 B의 새로운 공개 키의 추가 : 스푸핑/authorized_keys에와 b의 암호를 마지막으로 한 번 입력하면 암호없이 A와 같은에서 B로 B에 로그인 할 수 있습니다 지금부터
[email protected]:~> cat .ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys'
[email protected]'s password:
을 :
를3210
[email protected]:~> ssh [email protected] hostname
B
[암호없이 로그인 ssh] (http://linuxproblem.org/art_9.html) –