Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to secure connect to my disk in home server from Windows computer where I do not have administrator rights.

Windows support FTP and WebDAV. WebDAV support is strange... Windows 7 support only non-encrypted FTP, FTPS and FTPES do not work.

I can't use dynamic SSH tunnel. Client must use SOCKS5 proxy, Windows integrated ftp client don't support proxy. http://winscp.net/eng/docs/guide_tunnel#ftp_putty

I try tunnel FTP ports over SSH:

plink.exe -ssh -2 -4 -N -C -L 127.0.0.1:20:192.168.1.1:20 -L 127.0.0.1:21:192.168.1.1:21 -L user@server

in this settings FTP must work in active mode. I disable passive mode in proftpd on server:

<Limit EPSV PASV>
    DenyAll
</Limit>

in windows I succesfully login, but I can't list direcotry or any other action.

So I try passive ftp. I limit port in proftpd server (if I want tunnel 100 ports over putty, putty crash):

PassivePorts                    60000 60025

Now I estabilish tunnel:

plink.exe -ssh -2 -4 -N -C -L 127.0.0.1:20:192.168.1.1:20 -L 127.0.0.1:21:192.168.1.1:21 -L 127.0.0.1:60000:192.168.1.1:60000 -L 127.0.0.1:60001:192.168.1.1:60001 -L 127.0.0.1:60002:192.168.1.1:60002 -L 127.0.0.1:60003:192.168.1.1:60003 -L 127.0.0.1:60004:192.168.1.1:60004 -L 127.0.0.1:60005:192.168.1.1:60005 -L 127.0.0.1:60006:192.168.1.1:60006 -L 127.0.0.1:60007:192.168.1.1:60007 -L 127.0.0.1:60008:192.168.1.1:60008 -L 127.0.0.1:60009:192.168.1.1:60009 -L 127.0.0.1:60010:192.168.1.1:60010 -L 127.0.0.1:60011:192.168.1.1:60011 -L 127.0.0.1:60012:192.168.1.1:60012 -L 127.0.0.1:60013:192.168.1.1:60013 -L 127.0.0.1:60014:192.168.1.1:60014 -L 127.0.0.1:60015:192.168.1.1:60015 -L 127.0.0.1:60016:192.168.1.1:60016 -L 127.0.0.1:60017:192.168.1.1:60017 -L 127.0.0.1:60018:192.168.1.1:60018 -L 127.0.0.1:60019:192.168.1.1:60019 -L 127.0.0.1:60020:192.168.1.1:60020 -L 127.0.0.1:60021:192.168.1.1:60021 -L 127.0.0.1:60022:192.168.1.1:60022 -L 127.0.0.1:60023:192.168.1.1:60023 -L 127.0.0.1:60024:192.168.1.1:60024 -L 127.0.0.1:60025:192.168.1.1:60025 user@server

and after that I connect ftp from as netwrok location, it works great. But I must connect it from GUI. I want automatically connect from command line. I try

[%windir%\explorer ftp://UserName:UserPassW@server][2]

it only open window with connected ftp, but do not add item to "computer locations".


  • How can I compel integrated windows gui ftp client to use only active ftp mode?
  • How can I connect FTP "network location" from command line?
share|improve this question

migrated from stackoverflow.com Apr 27 at 10:28

This question came from our site for professional and enthusiast programmers.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.