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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 163 | ||
| 8229 | 9년 전 | 137 | ||
| 8228 |
커네드커네드
|
9년 전 | 184 | |
| 8227 | 9년 전 | 227 | ||
| 8226 | 9년 전 | 243 | ||
| 8225 | 9년 전 | 222 | ||
| 8224 | 9년 전 | 231 | ||
| 8223 | 9년 전 | 208 | ||
| 8222 |
|
9년 전 | 267 | |
| 8221 | 9년 전 | 171 | ||
| 8220 | 9년 전 | 208 | ||
| 8219 | 9년 전 | 177 | ||
| 8218 | 9년 전 | 227 | ||
| 8217 |
star3840
|
9년 전 | 195 | |
| 8216 | 9년 전 | 258 | ||
| 8215 | 9년 전 | 204 | ||
| 8214 | 9년 전 | 321 | ||
| 8213 | 9년 전 | 274 | ||
| 8212 | 9년 전 | 177 | ||
| 8211 | 9년 전 | 354 | ||
| 8210 | 9년 전 | 355 | ||
| 8209 | 9년 전 | 433 | ||
| 8208 | 9년 전 | 318 | ||
| 8207 | 9년 전 | 331 | ||
| 8206 |
|
9년 전 | 278 | |
| 8205 | 9년 전 | 250 | ||
| 8204 | 9년 전 | 237 | ||
| 8203 | 9년 전 | 310 | ||
| 8202 | 9년 전 | 229 | ||
| 8201 | 9년 전 | 262 | ||
| 8200 | 9년 전 | 273 | ||
| 8199 | 9년 전 | 297 | ||
| 8198 | 9년 전 | 260 | ||
| 8197 | 9년 전 | 245 | ||
| 8196 | 9년 전 | 665 | ||
| 8195 | 9년 전 | 255 | ||
| 8194 | 9년 전 | 367 | ||
| 8193 | 9년 전 | 274 | ||
| 8192 | 9년 전 | 290 | ||
| 8191 | 9년 전 | 243 | ||
| 8190 | 9년 전 | 228 | ||
| 8189 | 9년 전 | 294 | ||
| 8188 | 9년 전 | 222 | ||
| 8187 | 9년 전 | 233 | ||
| 8186 | 9년 전 | 231 | ||
| 8185 | 9년 전 | 400 | ||
| 8184 | 9년 전 | 189 | ||
| 8183 | 9년 전 | 399 | ||
| 8182 | 9년 전 | 266 | ||
| 8181 | 9년 전 | 226 | ||
| 8180 | 9년 전 | 792 | ||
| 8179 | 9년 전 | 568 | ||
| 8178 | 9년 전 | 431 | ||
| 8177 |
kiplayer
|
9년 전 | 426 | |
| 8176 | 9년 전 | 458 | ||
| 8175 | 9년 전 | 347 | ||
| 8174 | 9년 전 | 338 | ||
| 8173 | 9년 전 | 432 | ||
| 8172 | 9년 전 | 306 | ||
| 8171 | 9년 전 | 272 | ||
| 8170 | 9년 전 | 386 | ||
| 8169 |
커네드커네드
|
9년 전 | 344 | |
| 8168 | 9년 전 | 422 | ||
| 8167 | 9년 전 | 410 | ||
| 8166 | 9년 전 | 313 | ||
| 8165 | 9년 전 | 259 | ||
| 8164 | 9년 전 | 391 | ||
| 8163 | 9년 전 | 394 | ||
| 8162 | 9년 전 | 382 | ||
| 8161 | 9년 전 | 398 | ||
| 8160 |
|
9년 전 | 612 | |
| 8159 | 9년 전 | 557 | ||
| 8158 | 9년 전 | 351 | ||
| 8157 | 9년 전 | 463 | ||
| 8156 | 9년 전 | 345 | ||
| 8155 | 9년 전 | 350 | ||
| 8154 |
00년생용띠
|
9년 전 | 680 | |
| 8153 | 9년 전 | 318 | ||
| 8152 |
|
9년 전 | 499 | |
| 8151 | 9년 전 | 496 | ||
| 8150 | 9년 전 | 608 | ||
| 8149 |
Jangfolk
|
9년 전 | 466 | |
| 8148 | 9년 전 | 283 | ||
| 8147 | 9년 전 | 463 | ||
| 8146 | 9년 전 | 549 | ||
| 8145 | 9년 전 | 502 | ||
| 8144 | 9년 전 | 472 | ||
| 8143 | 9년 전 | 302 | ||
| 8142 | 9년 전 | 514 | ||
| 8141 | 9년 전 | 459 | ||
| 8140 | 9년 전 | 1022 | ||
| 8139 | 9년 전 | 374 | ||
| 8138 |
전갈자리남자
|
9년 전 | 475 | |
| 8137 | 9년 전 | 512 | ||
| 8136 | 9년 전 | 844 | ||
| 8135 |
|
9년 전 | 881 | |
| 8134 |
PlayPixel
|
9년 전 | 619 | |
| 8133 |
|
9년 전 | 529 | |
| 8132 | 9년 전 | 566 | ||
| 8131 | 9년 전 | 924 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기