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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4127 | ||
| 429 | 19년 전 | 3321 | ||
| 428 | 19년 전 | 4143 | ||
| 427 | 19년 전 | 3490 | ||
| 426 | 19년 전 | 3116 | ||
| 425 | 19년 전 | 3430 | ||
| 424 | 19년 전 | 2450 | ||
| 423 | 19년 전 | 2878 | ||
| 422 | 19년 전 | 2369 | ||
| 421 | 19년 전 | 3722 | ||
| 420 | 19년 전 | 4754 | ||
| 419 | 19년 전 | 3831 | ||
| 418 |
|
19년 전 | 1765 | |
| 417 | 19년 전 | 2764 | ||
| 416 | 19년 전 | 2408 | ||
| 415 | 19년 전 | 2613 | ||
| 414 | 19년 전 | 4430 | ||
| 413 |
|
19년 전 | 2623 | |
| 412 | 19년 전 | 3065 | ||
| 411 |
|
19년 전 | 3001 | |
| 410 |
|
19년 전 | 3707 | |
| 409 |
|
19년 전 | 3651 | |
| 408 |
|
19년 전 | 1871 | |
| 407 | 19년 전 | 2242 | ||
| 406 | 19년 전 | 2810 | ||
| 405 | 19년 전 | 2475 | ||
| 404 | 19년 전 | 4323 | ||
| 403 | 19년 전 | 3315 | ||
| 402 |
NeoGenesis
|
19년 전 | 4111 | |
| 401 | 19년 전 | 2619 | ||
| 400 |
|
19년 전 | 2526 | |
| 399 | 19년 전 | 2976 | ||
| 398 | 19년 전 | 2509 | ||
| 397 | 19년 전 | 2802 | ||
| 396 | 19년 전 | 2508 | ||
| 395 | 19년 전 | 3214 | ||
| 394 | 19년 전 | 1758 | ||
| 393 | 19년 전 | 3010 | ||
| 392 | 19년 전 | 2287 | ||
| 391 | 19년 전 | 2191 | ||
| 390 | 19년 전 | 2301 | ||
| 389 | 19년 전 | 2661 | ||
| 388 | 19년 전 | 2209 | ||
| 387 | 19년 전 | 4494 | ||
| 386 |
|
19년 전 | 2701 | |
| 385 |
|
19년 전 | 2509 | |
| 384 | 19년 전 | 3051 | ||
| 383 | 19년 전 | 3077 | ||
| 382 | 19년 전 | 3123 | ||
| 381 |
|
19년 전 | 2650 | |
| 380 |
|
19년 전 | 3033 | |
| 379 | 19년 전 | 2558 | ||
| 378 | 19년 전 | 2229 | ||
| 377 | 19년 전 | 2793 | ||
| 376 | 19년 전 | 2478 | ||
| 375 |
|
19년 전 | 2576 | |
| 374 | 19년 전 | 3835 | ||
| 373 | 19년 전 | 3287 | ||
| 372 | 19년 전 | 5010 | ||
| 371 |
세은아빠2
|
19년 전 | 2430 | |
| 370 | 19년 전 | 4512 | ||
| 369 | 19년 전 | 3121 | ||
| 368 | 19년 전 | 2920 | ||
| 367 | 19년 전 | 3746 | ||
| 366 | 19년 전 | 2671 | ||
| 365 | 19년 전 | 3757 | ||
| 364 | 19년 전 | 4033 | ||
| 363 | 19년 전 | 3467 | ||
| 362 | 19년 전 | 3500 | ||
| 361 | 20년 전 | 4124 | ||
| 360 |
hwatta
|
20년 전 | 2381 | |
| 359 | 20년 전 | 5123 | ||
| 358 | 20년 전 | 3675 | ||
| 357 | 20년 전 | 2620 | ||
| 356 |
sdesign1s
|
20년 전 | 2299 | |
| 355 | 20년 전 | 2778 | ||
| 354 | 20년 전 | 3041 | ||
| 353 | 20년 전 | 2807 | ||
| 352 |
|
20년 전 | 5788 | |
| 351 |
|
20년 전 | 2724 | |
| 350 |
|
20년 전 | 4313 | |
| 349 |
hwatta
|
20년 전 | 2205 | |
| 348 | 20년 전 | 7319 | ||
| 347 | 20년 전 | 2426 | ||
| 346 | 20년 전 | 3522 | ||
| 345 | 20년 전 | 4325 | ||
| 344 | 20년 전 | 2673 | ||
| 343 | 20년 전 | 3936 | ||
| 342 | 20년 전 | 3081 | ||
| 341 | 20년 전 | 4112 | ||
| 340 |
|
20년 전 | 5168 | |
| 339 |
|
20년 전 | 4253 | |
| 338 | 20년 전 | 5898 | ||
| 337 | 20년 전 | 2058 | ||
| 336 |
|
20년 전 | 3350 | |
| 335 |
|
20년 전 | 3567 | |
| 334 |
|
20년 전 | 2961 | |
| 333 |
hwatta
|
20년 전 | 2466 | |
| 332 | 20년 전 | 4670 | ||
| 331 | 20년 전 | 2293 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기