Open main menu

Changes

943 bytes added ,  18:32, 6 May 2016
no edit summary
ssh admin@qbucket
</source>
 
== Man in the Middle ==
In Maine they would say, "[https://www.youtube.com/watch?v=gD3cYh5Pp1I You ''can'' get there from here!]"
 
Sometimes you have to hop through a hoop before you can get to your destination host. In case you have to go from A through B to get to C, here's how <ref> https://serverfault.com/questions/337274/ssh-from-a-through-b-to-c-using-private-key-on-b </ref>
<source lang="bash">
ssh -t B ssh C
</source>
To use a key stored on B.
<source lang="bash">
ssh -t B ssh -i ~/.ssh/id_rsa C
</source>
<code>-t</code> forces pseudo-tty allocation instead of a login shell. <code>-i</code> is the identity found on B
 
If the hoop is a configured to drop your connections after short time-outs, then you can insert a keep-alive on B so that it rings the bell every 60 seconds.
<source lang="bash">
# B:/~/.ssh/config
# keep ssh connections open
ServerAliveInterval 60
</source>
More configuration info is on the [[SSH]] page
== Troubleshooting ==
4,558

edits