lftp+ssh-socks4 tunnel memo
January 31, 2007 1:40 am GMT-0700 | In Techdante-1.1.19:
./configure --with-socks-conf=/home/vv/dante-1.1.19/socks.conf
socks.conf:
route { from: 0.0.0.0/0 to: 0.0.0.0/0 via:127.0.0.1 port = 4444 protocol: tcp # server supports tcp and udp. proxyprotocol: socks_v4 # server supports socks v4 and v5. method: none #username # we are willing to authenticate via # method "none", not "username". }
lftp-3.5.9:
./configure --with-socksdante=/home/vv/dante-1.1.19
establish ssh-socks4 tunnel:
$ ssh -N -D4444 vv@**** -p**
[vv@XX ~]$ lftp-3.5.9/src/lftp ftp://166.111.18.101/ cd ok, cwd=/ lftp 166.111.18.101:/> set ftp:fix-pasv-address no lftp 166.111.18.101:/> ls drwxrwxr-x 6 HAPPY HAPPY 416 Dec 30 16:59 incoming -rw-r--r-- 1 HAPPY HAPPY 218031 Jan 31 06:08 ls-lR.gz drwxrwxr-x 5 HAPPY HAPPY 120 Nov 24 2005 pub -rw-r--r-- 1 HAPPY HAPPY 107198 Jan 31 06:08 tree.txt
No Comments yet »
RSS feed for comments on this post.
Leave a comment
This weblog is licensed under a Creative Commons License.
Powered by WordPress. Theme based on Pool by Borja Fernandez.