Re: problems in connection Open VMS to Unix using SFTP (1426 Views)
Reply
Occasional Visitor
Palak_1
Posts: 2
Registered: ‎07-05-2009
Message 1 of 13 (1,426 Views)

problems in connection Open VMS to Unix using SFTP

I am trying to generate connection from Open VMS server to Unix.

I am using the following command but the system is not asking for the password to connect for the first time, where as other accounts are working properly on the same server.

sftp userid@ipaddress

below is the error:

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


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

Notes:
As per the server hosting team there are no difference between the accounts on the server.

Questions:
1. If the accounts are same why we are getting the error "child process (/sys$system/tcpip$ssh_ssh2) exited with code 196."
What changes are required in the account setup to avoid the above error.

2. Is there any way to generate the keys from one account and use the same from other account to remediate the above problem.
Honored Contributor
marsh_1
Posts: 986
Registered: ‎03-25-2004
Message 2 of 13 (1,426 Views)

Re: problems in connection Open VMS to Unix using SFTP

hi,

which versions of vms and tcpip services are in use here ?
have you tried using the "-D" option to get more information on where it is failing ?
personally i would always use quotes around username@system strings to go to a unix server,
do you need it to be password auth ? using private / public keys is a lot easier and a bit more secure.
the openvms ssh manual is here for all the methods available and how to implement them :-

http://h71000.www7.hp.com/doc/732final/aa-rvbua-te/aa-rvbua-te.pdf

fwiw




Honored Contributor
Steven Schweda
Posts: 9,096
Registered: ‎02-23-2005
Message 3 of 13 (1,426 Views)

Re: problems in connection Open VMS to Unix using SFTP

> [...] other accounts are working properly
> [...]

They _are_, or they _were_?

> [...] exited with code 196.

I know nothing, but:

ALP $ exit 196
%SYSTEM-F-GPTFULL, global page table is full

help /message GPTFULL

write sys$output f$getsyi( "free_gblpages")
Honored Contributor
Richard Whalen
Posts: 341
Registered: ‎09-30-2005
Message 4 of 13 (1,426 Views)

Re: problems in connection Open VMS to Unix using SFTP

Since it comes from SSH the 196 is as likely to be a Unix error code as it as a VMS error code. Try connecting to the remote server with SSH and verify that you can connect and log in.
Occasional Visitor
Palak_1
Posts: 2
Registered: ‎07-05-2009
Message 5 of 13 (1,426 Views)

Re: problems in connection Open VMS to Unix using SFTP

the login is successfull using SSH to the unix server.

Can we perform the key exchange using SSH, if yes please provide set of commands to run.
Honored Contributor
The Brit
Posts: 1,291
Registered: ‎06-18-2007
Message 6 of 13 (1,426 Views)

Re: problems in connection Open VMS to Unix using SFTP

Dont know if this is related.

I had a problem with a UNIX machine logging in to an OpenVMS machine using sftp. I dont remember exactly what the error code was, but I do remember the "Warning: child process exited..." messages (although these may be generic).

The OpenVMS machine was a BL860c running OpenVMS 8.3-1H1 and TCPIP Services 5.6 ECO3.

The problem turned out to be related to the LENGTH of the Username and the LENGTH of the Login Directory. If either or both of these had length=12 (char) then the sftp login would fail.

When you run out of hair, ask HP about this.

Dave.
Honored Contributor
marsh_1
Posts: 986
Registered: ‎03-25-2004
Message 7 of 13 (1,426 Views)

Re: problems in connection Open VMS to Unix using SFTP

hi,

no, but you can try using scp

scp dev:[dir]file "user@ipaddress:dir/file"

hth

Honored Contributor
Richard Whalen
Posts: 341
Registered: ‎09-30-2005
Message 8 of 13 (1,426 Views)

Re: problems in connection Open VMS to Unix using SFTP

Ok, since you can log in using SSH, then the question becomes "Is the Unix system configured to offer the SFTP subsystem over SSH?"

Try

$ sftp "-D 2" "user@ipaddress"
Honored Contributor
Steven Schweda
Posts: 9,096
Registered: ‎02-23-2005
Message 9 of 13 (1,426 Views)

Re: problems in connection Open VMS to Unix using SFTP

> Since it comes from SSH the 196 is as
> likely to be a Unix error code as it as a
> VMS error code.

Our not knowing the probabilities does not
make them equal.

Another datum of questionable significance:

ALP $ search decc_include:errno.h ERRNO_MAX
#define __ERRNO_MAX 88 /* MUST equal largest errno value */
Occasional Visitor
Bjorn Fido Lindgren
Posts: 3
Registered: ‎07-07-2009
Message 10 of 13 (1,426 Views)

Re: problems in connection Open VMS to Unix using SFTP

Here's the info of versions in this problem:

HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 7
on a AlphaServer ES45 Model 2 running OpenVMS V7.3-2

/Bjorn
HP Pro
Ian Miller.
Posts: 4,371
Registered: ‎06-03-2003
Message 11 of 13 (1,426 Views)

Re: problems in connection Open VMS to Unix using SFTP

Palak,
can you post the quotas from that VMS user and have you tried another VMS username?

Have you reported this to HP?
____________________
Purely Personal Opinion
Occasional Visitor
Bjorn Fido Lindgren
Posts: 3
Registered: ‎07-07-2009
Message 12 of 13 (1,426 Views)

Re: problems in connection Open VMS to Unix using SFTP

Here's the result of numbers of free gblpages and quotas for some users:

620 Global Sections Used, 217392/3192240 Global Pagelets Used/Unused

This is the quotas from a working user:

Maxjobs: 0 Fillm: 200 Bytlm: 64000
Maxacctjobs: 0 Shrfillm: 0 Pbytlm: 0
Maxdetach: 0 BIOlm: 18 JTquota: 4096
Prclm: 10 DIOlm: 18 WSdef: 2048
Prio: 4 ASTlm: 24 WSquo: 4096
Queprio: 0 TQElm: 10 WSextent: 16384
CPU: (none) Enqlm: 2500 Pgflquo: 60000


And this is the failing user:

Maxjobs: 0 Fillm: 200 Bytlm: 64000
Maxacctjobs: 0 Shrfillm: 0 Pbytlm: 0
Maxdetach: 0 BIOlm: 256 JTquota: 4096
Prclm: 10 DIOlm: 4096 WSdef: 2048
Prio: 4 ASTlm: 4096 WSquo: 4096
Queprio: 0 TQElm: 10 WSextent: 16384
CPU: (none) Enqlm: 32767 Pgflquo: 400000

A note is that the same SSH command is working flawless!

And here is the command with -D 3:


VDLSCH>> sftp "-D 3" remoteuser@IP-address
Sftp2/SFTP2.C:4804: CRTL version (SYS$SHARE:DECC$SHARE ident) is: V7.3-2-03

SshFileCopy/SSHFILECOPY.C:1062: Making local connection.
Ssh2SftpServer/SSHFILEXFERS.C:2079: Received SSH_FXP_INIT
Ssh2SftpServer/SSHFILEXFERS.C:2124: version is 3
SshFileCopy/SSHFILECOPY.C:1001: Connection to local, ready to serve requests.
Sftp2/SFTP2.C:786: Connection ready.
SshReadLine/SSHREADLINE.C:3662: Initializing ReadLine...
SshFileCopy/SSHFILECOPY.C:1072: Connecting to remote host. (host = remoteuser@IP-address, user = NULL, port = NULL)
argv[0] = /sys$system/tcpip$ssh_ssh2
argv[1] = -v
argv[2] = -x
argv[3] = -a
argv[4] = -o
argv[5] = passwordprompt %U@%H's password:
argv[6] = -o
argv[7] = authenticationnotify yes
argv[8] = remoteuser@IP-address
argv[9] = -s
argv[10] = sftp

Sftp2/SFTP2.C:4012: notification: 0
Sftp2/SFTP2.C:4012: notification: 1
ssh_sigchld_real_callback
ssh_sigchld_process_pid: calling handler pid 538969457 code 196
Warning: child process (/sys$system/tcpip$ssh_ssh2) exited with code 196.
SshReadLine/SSHREADLINE.C:3728: Uninitializing ReadLine...


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

Occasional Visitor
Bjorn Fido Lindgren
Posts: 3
Registered: ‎07-07-2009
Message 13 of 13 (1,426 Views)

Re: problems in connection Open VMS to Unix using SFTP

This user had redefined RUN == "SCHED RUN/CONF" in the login.com. This was inherited by the subprocess that tried to schedule run a SSH image.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.