User Tools

Site Tools


guides:ssh-gateway

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
guides:ssh-gateway [05.12.2019 12:04]
Juha Kekäläinen
guides:ssh-gateway [05.12.2019 12:07]
Juha Kekäläinen
Line 8: Line 8:
 | |or with the one command| | |or with the one command|
 |Localpc|**ssh -t <uefad>@sshgw.uef.fi ssh <backend server>**| |Localpc|**ssh -t <uefad>@sshgw.uef.fi ssh <backend server>**|
 +
 +You can automate this all by creating local configuration file for the ssh (**$HOME/.ssh/config**) with following content. If you wish to forward X11 applications add "ForwardX11" option as well.
 +```
 +# content for the $HOME/.ssh/config file
 +Host <backend server>
 +    ForwardX11 yes
 +    ProxyCommand    ssh -W %h:%p sshgw.uef.fi
 +```
 +
 ^X-Forwarding^Command^ ^X-Forwarding^Command^
 |Localpc|**ssh -t -A -X <uefad>@sshgw.uef.fi ssh -Y <backend server>**| |Localpc|**ssh -t -A -X <uefad>@sshgw.uef.fi ssh -Y <backend server>**|
guides/ssh-gateway.txt · Last modified: 31.05.2022 11:09 by Administrator