:
>> ssh -tt works fine from SunOS 5.10 XOR to SunOS 5.10.
>>
>> The best option to fix this is to find a way to get the
>> Sun_SSH-server/client combo to work. I don't have a lot contacts in
>> the SunOS world, so I will be relying you to help me out here.
>>
>> A less preferable option is to check if the client and server runs
>> Sun_SSH and if so revert to the old ssh-method that does not transfer
>> Ctrl-C. It is reasonably easy to see if the ssh-client is Sun_SSH (ssh
>> -V), the remote can probably be detected with ssh -v (debug1: Remote
>> protocol version 2.0, remote software version Sun_SSH_1.1).
>>
>> Zhi Shen: can you help with the first option?
>
> Ole, I tried to reproduce your results but they are quite different.
Your results are as expected.
I should have stressed that you need to run the tests from solaris to
the same solaris machine to see the results. Also this is simply to
show why the -tt is needed (the sleep will only be killed if you use
-tt).
On solaris the remote command is actually run, but it is simply the
output that is missing:
solaris$ rm -f /tmp/ged
solaris$ </dev/null ssh -tt solaris touch /tmp/ged
solaris$ ls -l /tmp/ged
-rw-r--r-- 1 tange other 0 Aug 8 07:02 /tmp/ged
# This is as expected: The touch command was clearly run
solaris$ </dev/null ssh -tt solaris echo ged
tcgetattr: No such device or address
Connection to solaris closed.
# The output of echo was missing
When comparing '</dev/null ssh -v -tt solaris echo ged' to '</dev/null
ssh -v -tt redhat echo ged' I see:
< debug1: Peer sent proposed langtags, ctos: i-default
< debug1: Peer sent proposed langtags, stoc: i-default
---
> debug1: Peer sent proposed langtags, ctos:
> debug1: Peer sent proposed langtags, stoc:
I do not know if these are causing the problem.
It is '</dev/null ssh -tt solaris echo ged' that we need to find a
solution to. It works fine if run to or from a non-solaris machine.
And it actually runs the command when run on from a SunOS machine to a
SunOS machine - it is only the output that is missing.
If your SunOS experts ask why </dev/null and -tt are needed you answer:
</dev/null is because we run multiple commands in parallel, thus they
can not get the current tty.
-tt is needed because otherwise Ctrl-C will not work remotely.
/Ole