Peeking on a process
We have a problem at work with an ssh failing, but I don't have access to the source of the program running ssh. So I replaced ssh with this script, renaming the old ssh to ssh_orig. The extra flags on ssh were just me seeing if I can get the thing to work, you can ignore them:
#!/bin/bash echo $* >> /tmp/ssh-$$-in ssh_orig -C -2 -x $* | tee /tmp/ssh-$$-out
This creates a bunch of files in /tmp/ with the input command line string given to the script in the -in files and the output in the -out files.
Note, this will probably cause a security audit problem since you messed with ssh.
Comments
No comments.