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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 458 | ||
| 7929 | 9년 전 | 392 | ||
| 7928 | 9년 전 | 470 | ||
| 7927 | 9년 전 | 379 | ||
| 7926 | 9년 전 | 688 | ||
| 7925 | 9년 전 | 406 | ||
| 7924 | 9년 전 | 386 | ||
| 7923 | 9년 전 | 380 | ||
| 7922 | 9년 전 | 414 | ||
| 7921 | 9년 전 | 433 | ||
| 7920 | 9년 전 | 343 | ||
| 7919 | 9년 전 | 352 | ||
| 7918 | 9년 전 | 507 | ||
| 7917 | 9년 전 | 359 | ||
| 7916 | 9년 전 | 446 | ||
| 7915 | 9년 전 | 454 | ||
| 7914 | 9년 전 | 468 | ||
| 7913 | 9년 전 | 637 | ||
| 7912 | 9년 전 | 467 | ||
| 7911 | 9년 전 | 398 | ||
| 7910 | 9년 전 | 446 | ||
| 7909 | 9년 전 | 555 | ||
| 7908 | 9년 전 | 493 | ||
| 7907 | 9년 전 | 429 | ||
| 7906 | 9년 전 | 447 | ||
| 7905 | 9년 전 | 415 | ||
| 7904 | 9년 전 | 405 | ||
| 7903 | 9년 전 | 401 | ||
| 7902 | 9년 전 | 593 | ||
| 7901 |
|
9년 전 | 767 | |
| 7900 | 9년 전 | 649 | ||
| 7899 | 9년 전 | 431 | ||
| 7898 | 9년 전 | 429 | ||
| 7897 | 9년 전 | 389 | ||
| 7896 | 9년 전 | 407 | ||
| 7895 | 9년 전 | 523 | ||
| 7894 | 9년 전 | 435 | ||
| 7893 | 9년 전 | 407 | ||
| 7892 | 9년 전 | 446 | ||
| 7891 | 9년 전 | 808 | ||
| 7890 | 9년 전 | 1231 | ||
| 7889 | 9년 전 | 766 | ||
| 7888 |
limsy1987
|
9년 전 | 578 | |
| 7887 | 9년 전 | 611 | ||
| 7886 | 9년 전 | 499 | ||
| 7885 | 9년 전 | 469 | ||
| 7884 | 9년 전 | 461 | ||
| 7883 | 9년 전 | 471 | ||
| 7882 | 9년 전 | 526 | ||
| 7881 | 9년 전 | 500 | ||
| 7880 | 9년 전 | 621 | ||
| 7879 | 9년 전 | 508 | ||
| 7878 | 9년 전 | 1278 | ||
| 7877 | 9년 전 | 810 | ||
| 7876 | 9년 전 | 548 | ||
| 7875 | 9년 전 | 615 | ||
| 7874 |
|
9년 전 | 830 | |
| 7873 | 9년 전 | 552 | ||
| 7872 | 9년 전 | 716 | ||
| 7871 | 9년 전 | 530 | ||
| 7870 | 9년 전 | 649 | ||
| 7869 | 9년 전 | 469 | ||
| 7868 | 9년 전 | 504 | ||
| 7867 | 9년 전 | 503 | ||
| 7866 | 9년 전 | 565 | ||
| 7865 | 9년 전 | 505 | ||
| 7864 | 9년 전 | 568 | ||
| 7863 | 9년 전 | 557 | ||
| 7862 | 9년 전 | 520 | ||
| 7861 | 9년 전 | 691 | ||
| 7860 | 9년 전 | 667 | ||
| 7859 | 9년 전 | 444 | ||
| 7858 | 9년 전 | 749 | ||
| 7857 | 9년 전 | 1138 | ||
| 7856 | 9년 전 | 568 | ||
| 7855 | 9년 전 | 802 | ||
| 7854 | 9년 전 | 753 | ||
| 7853 | 9년 전 | 650 | ||
| 7852 | 9년 전 | 567 | ||
| 7851 | 9년 전 | 559 | ||
| 7850 | 9년 전 | 637 | ||
| 7849 | 9년 전 | 401 | ||
| 7848 | 9년 전 | 470 | ||
| 7847 | 9년 전 | 715 | ||
| 7846 | 9년 전 | 501 | ||
| 7845 | 9년 전 | 468 | ||
| 7844 | 9년 전 | 439 | ||
| 7843 | 9년 전 | 479 | ||
| 7842 | 9년 전 | 463 | ||
| 7841 | 9년 전 | 430 | ||
| 7840 | 9년 전 | 445 | ||
| 7839 | 9년 전 | 487 | ||
| 7838 | 10년 전 | 555 | ||
| 7837 | 10년 전 | 385 | ||
| 7836 | 10년 전 | 443 | ||
| 7835 | 10년 전 | 520 | ||
| 7834 |
|
10년 전 | 1228 | |
| 7833 | 10년 전 | 488 | ||
| 7832 | 10년 전 | 463 | ||
| 7831 | 10년 전 | 624 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기