Posts tagged ‘ssh’

login remote ssh delay 等很久

改 /etc/ssh/sshd_config

加一行:

UseDNS no

ssh 免輸入 password 登入的方式

先寫起來免得又忘記了…

想要由 hostA ssh到 hostB

先在 hostA 下 ssh-keygen -t dsa

7b3bceb08328df8f50e43a1a3d019c30

會產生 id_dsa , id_dsa.pub 在 home diectory 的 .ssh 目錄下

把這個 id_dsa.pub  "APPEND" 到 hostB 的 .ssh/authorized_keys 檔案中

這樣就 ok 了

我的 DD-WRT site to site VPN setting

MPPE 那邊要填 mppe required,no40,no56,stateless , 參考
http://www.monster.com.tw/archives/697

05c69eac336a687f36dc216d2508895b 36cc6fab11c2a074d9fe2c091fa9775d

打開 sshd
cd084e759d6b1fc707aba54788d69151

透過 TOR 作 SSH / MSN 跳板 ( socks4 )

要先裝好 tor , 啟動 tor 後 , 用 putty 照下面的設定就好了

擷取-tor-ssh

這是透過 tor network 的出口點的 traceroute 

8  r02-s2.tp.hinet.net (220.128.4.42)  3.919 ms r02-s2.tp.hinet.net (220.128.4.38)  3.863 ms  3.812 ms
9  r12-pa.us.hinet.net (211.72.108.193)  133.255 ms  133.232 ms *
10  r11-ny.us.hinet.net (202.39.83.105)  253.503 ms  253.630 ms  253.790 ms
11  US-NY-RI-01.chello.com (198.32.160.48)  258.488 ms  255.308 ms  259.752 ms
12  213.46.190.93 (213.46.190.93)  252.272 ms us-nyc01b-rd1-10ge-3-0.aorta.net (213.46.190.177)  252.482 ms  252.557 ms
13  213.46.190.50 (213.46.190.50)  258.266 ms *  258.407 ms
14  fr-par02a-rd1-pos-2-0.aorta.net (213.46.160.105)  339.525 ms  339.944 ms  339.758 ms
15  ch-gva01a-ra1-xe-1-0-0.aorta.net (213.46.160.26)  352.450 ms  352.673 ms  352.191 ms
16  mlrZHZ006-xge-3-4.aorta.net (213.46.171.54)  357.266 ms  362.542 ms  355.218 ms
17  * * *
18  80-218-145-22.dclient.hispeed.ch (80.218.145.22)  505.819 ms  508.504 ms  544.136 ms

擷取-tor-msn

Protected: Reverse Tunnel with SSH

This post is password protected. To view it please enter your password below:


linux / putty ssh tunnel setting

擷取_my_putty_ssh_tunnel

在 HOST A 下

#
# ssh -D 8000 -C -N -f user@remote.monster.tw
#

-D bind 一個 “dynamic” 的port ,
-C 壓縮 ,
-N 不執行任何 command ,
-f 背景執行,

在 HOST A 下 netstat -an | grep LIST 可以看到

tcp        0      0 127.0.0.1:8000          0.0.0.0:*               LISTEN

若本機為 linux , dynanic 的連法:

ssh -NfD 8000 -p 2200 rimmon@safe.server.tw

– 在本機建立一個 port 8000 的 listen 透過 ssh 連到 safe.server.tw 的 ssh port 2200 去.

 

// ——

screen :

http://digitalpbk.blogspot.com/2009/05/ssh-proxy-windows-linux-orkut-bypass.html