1748178 Members
4272 Online
108758 Solutions
New Discussion юеВ

Re: SFTP

 
SOLVED
Go to solution
robert70
Valued Contributor

SFTP

Trying to SFTP between an Alpha Server VMS 7.3-2 (SSH (V1.0) 2.4.1) and a Remote FTP Server. It connects ok and you can change directory ok but when you either take a directory listing or try and put a file to the remote server it hangs.
any ideas?
27 REPLIES 27
robert70
Valued Contributor

Re: SFTP

further to this I use a windows client version psftp.exe and this connects to the remote SFTP server ok and lets the commands ls and put work correctly
thanks
Steven Schweda
Honored Contributor

Re: SFTP

Some actual information on the "Remote FTP
Server" (which, I assume is actually a remote
SFTP server) might be helpful. Similarly, a
transcript showing the actual command(s)
used, with the actual output therefrom, might
also have some value (greater than that of
your vague description)

TCPIP SHOW VERSION

> (SSH (V1.0) 2.4.1)

Around here:

alp $ ssh "-V"
alp$dka0:[sys0.syscommon.][sysexe]tcpip$ssh_ssh2.exe: SSH Secure Shell OpenVMS (V5.5) 3.2.0 on COMPAQ Professional Workstation - VMS V7.3-2

robert70
Valued Contributor

Re: SFTP

HP TCP/IP Services for OpenVMS Alpha Version V5.4
on a COMPAQ AlphaServer DS20E 666 MHz running OpenVMS V7.3-2


DAVE$ sftp2 "-V"
dave$dkb0:[sys0.syscommon.][sysexe]tcpip$ssh_sftp2.exe: SSH Secure Shell OpenVMS
(V1.0) 2.4.1 on COMPAQ AlphaServer DS20E 666 MHz - VMS V7.3-2

will try and find out more info on the remote sftp server - thanks
robert70
Valued Contributor

Re: SFTP

sftp2 egduser@128.8.204.122
egduser@128.8.204.122's password:
sftp> cd /home/users/fosexe/feeds/data/egd/in
/home/users/fosexe/feeds/data/egd/in
sftp> ls
.

after the ls command the system just hangs
Hoff
Honored Contributor

Re: SFTP

Does ssh into the target box work?

What does the following command show for diagnostics:

$ sftp "-D9" "user@host.example.com"

Are you using compatible (and valid) certificates?

Any firewalls lurking?

Any virtual LAN (VLAN) connections or managed switches lurking?

(These days, having another box working is basically meaningless in a non-trivial network environment. Even the journeyman network folks have available a veritable arsenal of tools expressly designed to prevent network connectivity.)
robert70
Valued Contributor

Re: SFTP

yes ssh into the target box works

robert70
Valued Contributor

Re: SFTP

file attached showing output from "-D9"
Duncan Morris
Honored Contributor

Re: SFTP

Robert,

you appear to be runnnig an unpatched version of TCP/IP Services - and the early versions of SFTP were riddled with bugs.

Try updating the TCP stack.

DEVT02> tcpip show ver

HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 7
on a COMPAQ AlphaServer DS20E 666 MHz running OpenVMS V7.3-2

DEVT02> sftp2 "-V"
$1$dga1316:[sys0.syscommon.][sysexe]tcpip$ssh_sftp2.exe: SSH Secure Shell OpenVMS (V5.5) 3.2.0 on COMPAQ AlphaServer DS20E 666 MHz -
VMS V7.3-2
DEVT02>

Duncan
Jim_McKinney
Honored Contributor

Re: SFTP

> sftp> cd /home/users/fosexe/feeds/data/egd/in
/home/users/fosexe/feeds/data/egd/in


You don't say whether "ls" works after the initial connection. I've encountered issues in the past with SFTP getting lost after changing directories. Perhaps this path is just too deep (I've not had occasion to try one with 14 levels). If "ls" does work upon initial connection, you might try marching down the directory tree and see where the failure occurs.

sftp> ls
sftp> cd /home
sftp> ls
sftp> cd /home/users
sftp> ls
sftp> cd /home/users/fosexe/
.
.
.