flagflag  
2: 2009-04-20 (Mon) 02:12:26 iseki source Cur: 2021-08-10 (Tue) 12:30:53 iseki source
Line 1: Line 1:
** sshd [#mb3ce374] ** sshd [#mb3ce374]
 +*** 公開鍵暗号でパスワードなしでログイン [#qa7d63c1]
 + $ ssh-keygen -t rsa
 + $ ssh-copy-id 192.168.27.20
 + $ ssh 192.168.27.20
 + $
 +
 +- ssh-keygen
 +-- 公開鍵暗号のペアキーを生成する
 +-- ./ssh/id_rsa (秘密鍵:パーミッション注意)
 +-- ./ssh/id_rsa.pub (公開鍵)
 +- ssh-copy-id
 +-- 公開鍵を転送
 +-- 相手側に .ssh/authorized_keys(公開鍵)ができる.
 +
 +#br
*** root でのログイン禁止 [#d85e67b3] *** root でのログイン禁止 [#d85e67b3]
- /etc/ssh/sshd_config~ - /etc/ssh/sshd_config~
 PermitRootLogin no  PermitRootLogin no
 +#br
 +*** SSH_ASKPASS [#g2bca019]
 +- 環境変数
 +- ここに値(外部プログラム)がセットされていた場合,sshはこの外部プログラムを起動して,標準入力(外部プログラムの標準出力)からパスワードを得る.
 +#br
 +
 +*** ポートフォワーディング [#j573ceb1]
 +**** ローカルフォワーディング [#kc8a0e22]
 +- ssh -L 8000:target:80 user@remote
 +- local:8000 --> Remote:22 --> target:80
 +#br
 +
 +**** リモートフォワーディング [#iac75a37]
 +- ssh -R 8000:target:80 user@remote
 +- renote:8000:22 <-- local --> target:80
 +#br
 +
 +**** UNIXドメインソケットのフォワーディング [#xf237051]
 +- ssh -L file1:file2 user@remote
 +- local:unix:///file1 --> remote:unix:///file2
 +#br


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

33 user(s) are online (1 user(s) are browsing xpwiki)

Members: 0
Guests: 33

more...

Access Counter

Today : 708708708
Yesterday : 4345434543454345
Total : 2365784923657849236578492365784923657849236578492365784923657849
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com