- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: FTP via SSH tunnel problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2008 12:52 AM
тАО07-11-2008 12:52 AM
FTP via SSH tunnel problem
I'm trying to setup a FTP session via a SSH-tunnel. I do exactly the same from a linux client and a VMS client (same commands same servers etc..). However the linux client works where the VMS client fails.
My system : OpenVMS Alpha 8.3
TCPIP services 5.6 ECO 2
I have both TCPIP$FTP_ALLOW_ADDR_REDIRECT and TCPIP$FTP_ALLOW_PORT_REDIRECT defined to 1 in the system table. and resterted the FTP-client after that.
Set up the tunnel :
$ ssh -L 2121:10.112.0.10:21 tunnel-server
Making connection :
sirba-jj) ftp localhost 2121
220 (vsFTPd 2.0.6)
Connected to LOCALHOST.
Name (LOCALHOST:joukj):
331 Please specify the password.
Password:
230 Login successful.
FTP> cd electron/elstru
250 Directory successfully changed.
FTP> ls
500 Illegal PORT command.
FTP>
So it seems that the connection is made. The cd command works fine (as does pwd) but ls (and ie. get) give the error message.
Note that the same from a linux client works fine.
tunnel-server and 10.112.0.10 are both linux machines.
Can anybody give me any suggestions what may be wrong?
Thanks
Jouk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2008 01:33 AM
тАО07-11-2008 01:33 AM
Re: FTP via SSH tunnel problem
before using "ls" or other commands, try
"passive on"
Duncan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2008 01:56 AM
тАО07-11-2008 01:56 AM
Re: FTP via SSH tunnel problem
sirba-jj) ftp localhost 2121
220 (vsFTPd 2.0.6)
Connected to LOCALHOST.
Name (LOCALHOST:joukj):
331 Please specify the password.
Password:
230 Login successful.
FTP> passive on
Passive is ON.
FTP> ls
227 Entering Passive Mode (10,112,0,10,170,24).
%TCPIP-E-FTP_DATACONF, cannot establish data connection with remote host
-SYSTEM-F-REJECT, connect to network object rejected
FTP>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2008 02:20 AM
тАО07-11-2008 02:20 AM
Re: FTP via SSH tunnel problem
Process Software's SSH software is built with code to recognize FTP tunnels and it generally works better in PASV mode than PORT mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2008 02:37 AM
тАО07-11-2008 02:37 AM
Re: FTP via SSH tunnel problem
You do not need the TCPIP$FTP_ALLOW_ADDR_REDIRECT & TCPIP$FTP_ALLOW_PORT_REDIRECT logicals
The tunnel has to be set up in a slightly different way:
ssh -"L" ftp/2121:10.112.0.10:21 tunnel-server
passive mode is essential
Jouk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2008 02:38 AM
тАО07-11-2008 02:38 AM
Re: FTP via SSH tunnel problem
thanks for all who replied