ssh command exit-code always 0
Posted: Mon Nov 04, 2019 6:47 pm
Hi, I am trying to automate deployment of the let'sencrypt certificate from a windows to my Mikrotik router.
I am using posh-ssh module and its invoke-SSHcommand commandlet.
The commands are executed successfully, but the issue I am having is, that the exit-code is always 0, even if I have a typo in the command.
I could find the same exit-code in the debug log on my router, so it looks to me the router is really returning it.
Do I understand the log right?
Is this a known bug?
regards
PiGeon
I am using posh-ssh module and its invoke-SSHcommand commandlet.
The commands are executed successfully, but the issue I am having is, that the exit-code is always 0, even if I have a typo in the command.
I could find the same exit-code in the debug log on my router, so it looks to me the router is really returning it.
Do I understand the log right?
Is this a known bug?
regards
PiGeon