SUN's "ssh" returns always with exit status 255 ?!

2007-12-25 3:29:00

Hi,

on random days, my scripts which invoke commands on remote hosts through an
SSH connection (password-less, via exchange of keys) always return with exit
status 255.

Looking in man-page of "ssh", it says that it is supposed to return the exit
status of the remote command, or 255 if 'an error occured'.

Even if I do something like

ssh $remotehost "cd /tmp ; echo \$? ; pwd ; echo \$? " ; echo $?

I get as result

0
/tmp
0
255 <-- WHY ?

Even so bad that this morning all scripts returned 0 (zero) as exit statuses,
now suddenly 255.

How can I diagnose the real cause of this exit status, or is this a known bug
?

Running Solaris-9, between SF280R and V100's

TIA

Rob

Comments

Got something to say?

You must be logged in to post a comment.