COMING SOON 🚀

ssh의 dsa 공개키를 이용 로그인

· 13년 전 · 1410
 dsa / rsa 키 생성
 
클라이언트 데스크탑
root@byoungguk-desktop:~# ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/id_dsa.pub.
The key fingerprint is:
x:x:x:.... root@byoungguk-desktop
The key's randomart image is:
+--[ DSA 1024]----+
|                 |
|           .     |
|        . +      |
|       . o o     |
....
+-----------------+
 
root@byoungguk-desktop:~# cd /root/.ssh/
root@byoungguk-desktop:~/.ssh# ls -al
합계 20
drwx------  2 root root 4096 2011-09-16 14:25 .
drwx------ 25 root root 4096 2011-09-15 11:28 ..
-rw-------  1 root root  672 2011-09-16 14:25 id_dsa
-rw-r--r--  1 root root  612 2011-09-16 14:25 id_dsa.pub
-rw-r--r--  1 root root  270 2010-07-23 12:28 known_hosts
 
 
파일중 id_dsa.pub 내용을 복사
 
 
접속하고자 하는 서버 계정에서 .ssh 디렉토리의 authorized_keys 파일에 추가함. 없으면 파일 만들고.
.ssh 디렉토리, authorized_keys 는 계정의 소유권으로 읽기,쓰기가능해야 한다.(0600)
 
접속 테스트
 
ssh xxx@ip
 
원격에서 명령 실행.
ssh xxx@ip df
 
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/xvda2             9920624   7767680   1640876  83% /
/dev/xvda1              101086     26739     69128  28% /boot
/dev/xvda4            18034160   8734112   8383944  52% /home
tmpfs                   262232         0    262232   0% /dev/shm
/dev/xvdc1            20635700   2980460  16607004  16% /data3
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
13년 전 조회 1,974
13년 전 조회 1,813
13년 전 조회 1,862
13년 전 조회 2,107
13년 전 조회 2,929
13년 전 조회 1,993
13년 전 조회 2,411
13년 전 조회 1,486
13년 전 조회 1,507
13년 전 조회 1,476
13년 전 조회 1,412
13년 전 조회 1,693
13년 전 조회 1,738
13년 전 조회 1,435
13년 전 조회 1,698
13년 전 조회 2,255
13년 전 조회 1,511
13년 전 조회 2,298
13년 전 조회 1,383
13년 전 조회 1,562
13년 전 조회 1,402
13년 전 조회 1,590
13년 전 조회 1,438
13년 전 조회 1,772
13년 전 조회 1,819
13년 전 조회 1,720
13년 전 조회 3,547
13년 전 조회 1,357
13년 전 조회 1,607
13년 전 조회 1,470
13년 전 조회 1,964
13년 전 조회 1,703
13년 전 조회 2,382
13년 전 조회 2,714
13년 전 조회 2,060
13년 전 조회 3,955
13년 전 조회 2,202
13년 전 조회 1,551
13년 전 조회 3,002
13년 전 조회 3,430
13년 전 조회 1,263
13년 전 조회 1,413
13년 전 조회 1,321
13년 전 조회 1,424
13년 전 조회 1,331
13년 전 조회 1,587
13년 전 조회 2,825
13년 전 조회 1,287
13년 전 조회 1,259
13년 전 조회 1,411
13년 전 조회 1,372
13년 전 조회 1,290
13년 전 조회 1,582
13년 전 조회 1,549
13년 전 조회 1,279
13년 전 조회 1,296
13년 전 조회 2,321
13년 전 조회 1,516
13년 전 조회 1,882
13년 전 조회 1,238
13년 전 조회 1,843
13년 전 조회 1,398
13년 전 조회 1,244
13년 전 조회 1,528
13년 전 조회 3,081
13년 전 조회 1,691
13년 전 조회 2,403
13년 전 조회 1,282
13년 전 조회 1,313
13년 전 조회 1,567
13년 전 조회 1,290
13년 전 조회 2,195
13년 전 조회 1,212
13년 전 조회 1,256
13년 전 조회 1,580
13년 전 조회 1,380
13년 전 조회 1,288
13년 전 조회 1,420
13년 전 조회 1,432
13년 전 조회 1,306
13년 전 조회 3,124
13년 전 조회 2,242
13년 전 조회 2,115
13년 전 조회 1,313
13년 전 조회 1,265
13년 전 조회 1,365
13년 전 조회 1,579
13년 전 조회 1,379
13년 전 조회 1,931
13년 전 조회 2,026
13년 전 조회 1,611
13년 전 조회 1,743
13년 전 조회 2,796
13년 전 조회 3,117
13년 전 조회 6,398
13년 전 조회 1,295
13년 전 조회 1,741
13년 전 조회 1,301
13년 전 조회 1,592
13년 전 조회 2,205