Hi Bart,
I am using the same version (the x450e switches I am using cannot run newer EXOS versions). When testing this with the EXOS-VM version 21.1.14, ssh commands work fine with STDIN redirected from /dev/null, so inbetween those EXOS version something was changed. It might be a side effect of the newer SSH code in 21.1.
To summarize the situation for EXOS 15.3:
- SSH commands work fine from an interactive shell (e.g. terminal window)
- SSH commands with STDIN redirected from /dev/null do not work from an interactive shell (neither with ssh -n nor ssh SSH commands from a script started via cron do not work (here STDIN is redirected from /dev/null by cron)
- expect can be used to work around this issue (e.g. the original TCL based expect, or a Perl extpect module, or one for Python)
I have successfully tested a simple expect script with EXOS 15.3 today. Expect provides the input to SSH on STDIN.
With EXOS version 21.1, SSH commands work even with STDIN redirected from /dev/null, e.g. when used via cron.
Best regards,
Erik