1

When I attempt to run a command in a remote server, for instance :

ssh user@server 'app; exit \$?' 

I get an annoying output from ssh stating :

Running SSH command :
....

And the exact command is going to be run on the remote server. I don't want that output. I'm only interested in the exit code from my app, which I'm getting correctly. How can I suppress this?

Matias Barrios
  • 203
  • 3
  • 12

1 Answers1

1

Find out where it's coming from.

Check your local shell aliases, your local ssh config on your local system, and also check the shell startup scripts on the remote system.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940