cancel
Showing results for 
Search instead for 
Did you mean: 

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/
.
.
.
robert70
Valued Contributor

Re: SFTP

"ls" fails whenever you log in
robert70
Valued Contributor

Re: SFTP

Duncan
How do you update the stack?
thanks
Hoff
Honored Contributor

Re: SFTP

How do you update the TCP/IP Services stack? Well, by coincidence, I just answered that in another thread:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1366372
robert70
Valued Contributor

Re: SFTP

does it matter if I install the JA release of this?
robert70
Valued Contributor

Re: SFTP

Jan 05 2007 00:00 31669287 TCPIPJA_ECO-V0503-182.PCSI-DCX_AXPEXE
Apr 30 2008 00:00 2296 TCPIPJA_ECO-V0503-182.txt

Am I looking at the right kit here?
Duncan Morris
Honored Contributor

Re: SFTP

Robert,

I think that this is the JAPANESE kit!

Go through the itrc search page:

http://www13.itrc.hp.com/service/patch/search.do?BC=main|&pageOsid=openvms

Duncan Morris
Honored Contributor

Re: SFTP

If you want direct FTP access, use

ftp://ftp.itrc.hp.com/openvms_patches/alpha/V7.3-2/


Steven Schweda
Honored Contributor

Re: SFTP

> If you want direct FTP access, use
> [...]

Right. The headless chicken who organized
this stuff spread it around pretty well. It
often helps to start at:

ftp://ftp.itrc.hp.com/openvms_patches/

and then explore more branches of the tree
than you would reasonably expect to be
useful.
Hoff
Honored Contributor

Re: SFTP

> Am I looking at the right kit here?

No. The JA variants are the Japanese language variant kits.

Read the associated text files, too. Those files are the release notes for the kits, and (bluntly) there can be the occasional, um, surprises lurking within some of the patch kits.

As for patch area access directly from an IP-connected OpenVMS box:

DIRECTORY /FTP /ANONYMOUS -
ftp.itrc.hp.com::"/slash/path/to/file"

and

COPY /FTP /ANONYMOUS ...

There's also the master listing file (over in the OpenVMS directory) that is worth a read.

If you're running Mac OS X, you can typically run all this processing right from Finder, including reading the release notes text files and the patch download.

robert70
Valued Contributor

Re: SFTP

loaded the new eco kit Duncan

problem using SSH

errors as follows:-

DAVE$ sftp2 egduser@128.8.204.122
warning: Unrecognized configuration parameter 'AuthorizationFile'.
warning: Failed to parse some variables from config file '/etc/ssh2/ssh2_config'
.
warning:

******************

You may have a old style configuration file. Please follow the
instructions in the release notes to use the new configuration
files.

******************


tcpip$ssh_ssh2: FATAL: Error reading config file /etc/ssh2/ssh2_config.

Warning: child process (/sys$system/tcpip$ssh_ssh2) exited with code 188.


%TCPIP-E-SSH_FC_ERROR, error in ssh file transfer operation
DAVE$ sftp egduser@128.8.204.122
warning: Unrecognized configuration parameter 'AuthorizationFile'.
warning: Failed to parse some variables from config file '/etc/ssh2/ssh2_config'
.
warning:

******************

You may have a old style configuration file. Please follow the
instructions in the release notes to use the new configuration
files.

******************


tcpip$ssh_ssh2: FATAL: Error reading config file /etc/ssh2/ssh2_config.

Warning: child process (/sys$system/tcpip$ssh_ssh2) exited with code 188.


%TCPIP-E-SSH_FC_ERROR, error in ssh file transfer operation
DAVE$


any clues?
robert70
Valued Contributor

Re: SFTP

DAVE$ tcpip show version

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


version the server is now at - if this helps
Hoff
Honored Contributor
Solution

Re: SFTP

This is one of the "surprises" that's listed in the associated documentation. Here, you have old-style configuration files. AFAIK, this detail is included in the release notes for the kit.

Here's another discussion with some related details:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1050353
Steven Schweda
Honored Contributor

Re: SFTP

> HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 6

Why not ECO 7?

> You may have a old style configuration file. Please follow the
> instructions in the release notes to use the new configuration
> files.

> any clues?

Wasn't that message a clue?
robert70
Valued Contributor

Re: SFTP

many thanks to all helpful replies
working now
robert70
Valued Contributor

Re: SFTP

particular thanks to Hoff and Duncan
Cheers guys
Appreciated