Operating System - OpenVMS
1748123 Members
3411 Online
108758 Solutions
New Discussion юеВ

SCP transfer from unix to vms fails

 
SOLVED
Go to solution
Fredrik.eriksson
Valued Contributor

SCP transfer from unix to vms fails

Hi,

I have a little conumbrum... We're trying to transfer files from a Solaris 10 machine to a OpenVMS 7.3-2.
The requirements we have is that there's no password so we choose public-key authentication. The public-key authentication works if you use try to pass commands via:
ssh @ .
But it doesn't work to scp a file from the unix -> openvms using:
scp file.txt @:~
Or if the ~ is replaced by a full path.
From what I can see in the logfiles it does authenticate and accept the public-key authentication but something else fails and I can't seem to find where and what.

I've attached a log containing the logs from both solaris and from vms.

Anyone ever seen this before?

Best regards
Fredrik Eriksson
9 REPLIES 9
Wim Van den Wyngaert
Honored Contributor

Re: SCP transfer from unix to vms fails

I think you are mixing SSH and OpenSSH. The keys must be converted.

Wim
Wim
Richard Whalen
Honored Contributor
Solution

Re: SCP transfer from unix to vms fails

It looks like the public key authentication worked fine.

If the Unix side is using OpenSSH, then its SCP is probably equivalent to RCP over SSH, and TCP/IP Services does not offer this functionality. TCP/IP Services only supports the SFTP protocol, so you may have to use SFTP instead of SCP.

Process Software's MultiNet, TCPware, and SSH for OpenVMS product support the "RCP over SSH" implementation of SCP.
Fredrik.eriksson
Valued Contributor

Re: SCP transfer from unix to vms fails

Hi again :)

Wim, the keys as I said works fine. They've already been converted.

Richard, I've tried sftp also, problem with that is that it hangs when it's supposed to exit and doesn't return a prompt.
We are using the RCP solution at the moment but our unix group doesn't want us to use that and wants us to use SCP. This is why I'm trying to figure out why it doesn't work.

Thou I ran into another thread that i missed completely where you already answered this :P
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=979727

So basiclly my options are:
1) Fix sftp so it doesn't hang or use standard ftp.
2) Buy SSH and get rid of the openSSH
3) Continue using RCP (to the unix-admins wrath :P)

Did I get it right?

Best regards
Fredrik Eriksson
Wim Van den Wyngaert
Honored Contributor

Re: SCP transfer from unix to vms fails

Did you try to reverse the path : use Solaris as server and sftp from VMS ?

Wim (on multinet)
Wim
Wim Van den Wyngaert
Honored Contributor

Re: SCP transfer from unix to vms fails

Did you try to reverse the path : use Solaris as server and sftp from VMS ?

Wim
Wim
Steven Schweda
Honored Contributor

Re: SCP transfer from unix to vms fails

> [...] I've tried sftp also, problem with
> that is that it hangs when it's supposed to
> exit and doesn't return a prompt.

Details? Evidence?

$ uname -a
SunOS ra 5.10 Generic_127127-11 sun4u sparc SUNW,UltraSPARC-IIi-cEngine

$ ssh -V
Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f

$ ssh alp 'dire /date fred_scp.dat'

%DIRECT-W-NOFILES, no files found

$ echo 'put fred_scp.dat' | sftp alp
Connecting to alp...
sftp> Uploading fred_scp.dat to /ALP$DKA0/sms/fred_scp.dat
sftp>

$ ssh alp 'dire /date fred_scp.dat'


Directory ALP$DKA0:[SMS]

FRED_SCP.DAT;1 25-SEP-2008 07:43:38.99

Total of 1 file.
$

$ ssh alp 'tcpip show version'


HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 7
on a COMPAQ Professional Workstation XP1000 running OpenVMS V7.3-2

I have seen problems with hanging when using
SSH on the VMS side, but, as I recall, there
was a cure for that, too.
Richard Whalen
Honored Contributor

Re: SCP transfer from unix to vms fails

Without some debugging from SFTP (or the SFTP server on VMS) we can only speculate why SFTP would hang on exit. The "exit" mechanism for the client is to just close the connection and it expects the other side to silently go away. It could be that the TCP/IP Services implementation isn't shutting down its side of the connection when this happens.
Fredrik.eriksson
Valued Contributor

Re: SCP transfer from unix to vms fails

I will try to get some, but my collegue that handles those specific unix machines went home early and is gone until monday.

Best regards
Fredrik Eriksson
Fredrik.eriksson
Valued Contributor

Re: SCP transfer from unix to vms fails

Not an issue anymore. Seems like they didn't want to continue on with this.

Best regards
Fredrik Eriksson