I was searching for a way to connect to one of my servers who is behind a jumpbox via SSH. I was able to do so by running the following command:
$ ssh -tt ptitpou@jumpbox ssh -tt ptitpou@targetserver
Now, I want to be able to use that server to access webservers on
targetserver's network. For that, I followed this quora answer and I was able to successfully access the websites. The command I used was:
$ ssh -L 127.0.0.1:9999:localhost:9696 -tt ptitpou@jumpbox ssh -D 9696 -tt ptitpou@targetserver
The question I want to ask is how to use the
ssh -o ProxyCommand to command in a slightly cleaner way. I tried to put the second part of the command as the proxy command and I had a successful SSH connection, but I was unable to use the proxy after that.
I've also tried this but the command line hangs after connecting to
How can I do that? Am I wrong to try to use
ProxyCommand option for this task?