Error running cozclient -ssh from a Unix machine

General discussion of the Co:Z Toolkit
Post Reply
gngrossi
Posts: 36
Joined: Sat Mar 06, 2010 6:10 pm

Error running cozclient -ssh from a Unix machine

Post by gngrossi »

Trying to run the command from a Unix host and receiving what looks to be an error parsing the user@host string. Our z/OS userids begin with an "@".

cozclient -ssh @ABCD@mvshost ls
Usage: ssh [options] host [command]
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

I think that the problem may be with the ssh command on your Unix system.

Can you do the following from this Unix box?

ssh @ABCD@host ls

If so, can you do this and post or email us the results:

export COZ_LOG=T
cozclient -ssh @ABCD@mvshost ls
gngrossi
Posts: 36
Joined: Sat Mar 06, 2010 6:10 pm

Post by gngrossi »

Test 1
ssh @ABCD@mvshost
Usage: ssh [options] host [command]

Test2
ssh -vvv @ABCD@mvshost
Sun_SSH_1.1.3, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
Usage: ssh [options] host [command]

Test 2 - successful using a .ssh/config file with the userid
ssh mvshost

Test 3 - successful
ssh -l @ABCD mvshost
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

You are using the (old) Sun SSH client, which doesn't allow the user@host syntax with a userid containing '@'. Have you reported this problem to Sun? :-)

The cozclient, for parsing reasons, requires the user@host ssh syntax. We do support @abc@host but the underlying ssh client needs to support it.

Your best option may be to install an up-to-date version of OpenSSH from sunfreeware.com.
gngrossi
Posts: 36
Joined: Sat Mar 06, 2010 6:10 pm

Post by gngrossi »

Thanks for the update.

For cozclient to function, "dspipes" needs to be configured in OpenSSH on z/OS, right?
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Yes, the dspipes ssh server subsystem is required for "cozclient -ssh" (but not for cozclient run via the CoZLauncher).
gngrossi
Posts: 36
Joined: Sat Mar 06, 2010 6:10 pm

Post by gngrossi »

Can you provide a simple cozclient command that "reaches" back to z/OS after being invoked on Linux from CoZ Launcher? Thanks.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Under the CoZLauncher, you can simply do this:

cozclient ls
gngrossi
Posts: 36
Joined: Sat Mar 06, 2010 6:10 pm

Post by gngrossi »

Tried running this from z/OS to a target zLinux server
//STDIN DD *
uname -a
cozclient ls

CoZLauncher[N]: version: 1.5.4 2010-03-06
CoZLauncher[N]: Copyright (C) Dovetailed Technologies, LLC. 2006. All rights res
cozagent[N]: version: 1.0.5 2008-03-01
fromdsn(DD:STDIN)[N]: 2 records/160 bytes read; 22 bytes written in 0 millisecon
cozserver(4)[E]: Spawn error, file=ls - EDC5129I No such file or directory. (err
cozagent[E]: Target Program(5115) ended with RC=102
todsn(DD:STDOUT)[N]: 882 bytes read; 11 records/871 bytes written in 0.233 secon
todsn(DD:STDERR)[N]: 78 bytes read; 2 records/76 bytes written in 0.220 seconds
CoZLauncher[E]: abc@linuxhost target command '/bin/bash -l' ended with RC=102
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Sorry, my mistake, since the CoZLauncher step doesn't run your shell profile, your path may or may not include /bin.

Try:

cozclient /bin/ls
gngrossi
Posts: 36
Joined: Sat Mar 06, 2010 6:10 pm

Post by gngrossi »

Works great...thanks for the help.
Post Reply