Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
2 added 5 characters in body
source | link

To debug ssh session use "-v" option instead of "-q" and analize the output.

Try to use absolute paths in remote command. So this looks like:

# ssh -v root@hostname /bin/sh -c '/bin/rm -rf /opt/jetty/'

To debug ssh session use "-v" option instead of "-q" and analize the output.

Try to use absolute paths in remote command. So this looks like:

# ssh -v root@hostname sh -c '/bin/rm -rf /opt/jetty/'

To debug ssh session use "-v" option instead of "-q" and analize the output.

Try to use absolute paths in remote command. So this looks like:

# ssh -v root@hostname /bin/sh -c '/bin/rm -rf /opt/jetty/'
1
source | link

To debug ssh session use "-v" option instead of "-q" and analize the output.

Try to use absolute paths in remote command. So this looks like:

# ssh -v root@hostname sh -c '/bin/rm -rf /opt/jetty/'