flagflag  
Page Top

公開鍵暗号でパスワードなしでログイン anchor.png

$ 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(公開鍵)ができる.
 
Page Top

root でのログイン禁止 anchor.png

  • /etc/ssh/sshd_config
    PermitRootLogin no
     
Page Top

SSH_ASKPASS anchor.png

  • 環境変数
  • ここに値(外部プログラム)がセットされていた場合,sshはこの外部プログラムを起動して,標準入力(外部プログラムの標準出力)からパスワードを得る.
     
Page Top

ポートフォワーディング anchor.png

Page Top
ローカルフォワーディング anchor.png
  • ssh -L 8000:target:80 user@remote
  • local:8000 --> Remote:22 --> target:80
     
Page Top
リモートフォワーディング anchor.png
  • ssh -R 8000:target:80 user@remote
  • renote:8000:22 <-- local --> target:80
     
Page Top
UNIXドメインソケットのフォワーディング anchor.png
  • ssh -L file1:file2 user@remote
  • local:unix:///file1 --> remote:unix:///file2
     

Front page   Freeze Diff Backup Copy Rename Reload   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)
Counter: 1697, today: 2, yesterday: 0
Last-modified: 2021-08-10 (Tue) 12:30:53 (JST) (992d) by iseki

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthApr 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
Today

Who's Online

85 user(s) are online (18 user(s) are browsing xpwiki)

Members: 0
Guests: 85

more...

Access Counter

Today : 1100611006110061100611006
Yesterday : 2042920429204292042920429
Total : 2339041223390412233904122339041223390412233904122339041223390412
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com