↧
Answer by temporaryuser1 for How to detect if ssh failed to execute remote...
What shell are you using I tested using zsh but bash will do the same output ? ➜ ~ ssh localhost echo Hello world Hello world ➜ ~ echo $? 0 ➜ ~ ssh localhost error bash: error: command not found ➜ ~...
View ArticleHow to detect if ssh failed to execute remote command due to host...
I am using Amazon Linux on AWS. Trying to execute a remote command using ssh like this: % ssh somehost echo Hello World @@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @...
View Article