"리눅스 ssh-keygen"의 두 판 사이의 차이

잔글 (로봇: 자동으로 텍스트 교체 (-<source lang='dos'> +<source lang='cli'>))
4번째 줄: 4번째 줄:


==예시==
==예시==
<source lang='dos'>
<source lang='cli'>
[root@jmnote ~]# ssh-keygen
[root@jmnote ~]# ssh-keygen
Generating public/private rsa key pair.
Generating public/private rsa key pair.
10번째 줄: 10번째 줄:
</source>
</source>
:{{Enter}}
:{{Enter}}
<source lang='dos'>
<source lang='cli'>
Enter passphrase (empty for no passphrase):  
Enter passphrase (empty for no passphrase):  
Enter same passphrase again:  
Enter same passphrase again:  
</source>
</source>
:암호 2번 입력
:암호 2번 입력
<source lang='dos'>
<source lang='cli'>
Your identification has been saved in /root/.ssh/id_rsa.
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
Your public key has been saved in /root/.ssh/id_rsa.pub.
34번째 줄: 34번째 줄:
</source>
</source>
*다음과 같이 개인키(id_rsa), 공개키(id_rsa.pub) 파일이 생성되었음
*다음과 같이 개인키(id_rsa), 공개키(id_rsa.pub) 파일이 생성되었음
<source lang='dos'>
<source lang='cli'>
[root@jmnote ~]# ll ~/.ssh/id_rsa*
[root@jmnote ~]# ll ~/.ssh/id_rsa*
-rw------- 1 root root 1743 Sep  4 14:28 /root/.ssh/id_rsa
-rw------- 1 root root 1743 Sep  4 14:28 /root/.ssh/id_rsa

2015년 2월 6일 (금) 03:59 판

리눅스 RSA 2048 공개키, 개인키 생성
리눅스 ssh-keygen
/usr/bin/ssh-keygen

1 예시

[root@jmnote ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter
Enter passphrase (empty for no passphrase): 
Enter same passphrase again:
암호 2번 입력
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
20:e9:b0:5b:5a:2b:ad:e8:4d:e4:b3:a0:32:49:2d:97 evan
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|     .           |
|  . o .          |
|   + . .         |
|  o.=   S        |
| ooE .           |
|.o*+o            |
|=.+oo            |
|=o.o             |
+-----------------+
  • 다음과 같이 개인키(id_rsa), 공개키(id_rsa.pub) 파일이 생성되었음
[root@jmnote ~]# ll ~/.ssh/id_rsa*
-rw------- 1 root root 1743 Sep  4 14:28 /root/.ssh/id_rsa
-rw-r--r-- 1 root root  390 Sep  4 14:28 /root/.ssh/id_rsa.pub

2 같이 보기

3 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}