User Tools

Site Tools


guides:ssh-gateway

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
guides:ssh-gateway [04.12.2019 15:52]
Juha Kekäläinen created
guides:ssh-gateway [05.12.2019 12:07]
Juha Kekäläinen
Line 3: Line 3:
 UEF SSH Gateway server can be used to connect various servers that are located within the university network. Authentication is done with the UEF credentials. UEF SSH Gateway server can be used to connect various servers that are located within the university network. Authentication is done with the UEF credentials.
  
-## SSH-connection to backend server. +^SSH-Connection ^Command^
- +
-^at prompt ^Command^+
 |Localpc|**ssh <uefad>@sshgw.uef.fi**| |Localpc|**ssh <uefad>@sshgw.uef.fi**|
-|[<uefad>@sshgw ~]|**ssh <backend server>**| +|sshgw|**ssh <backend server>**| 
-||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^
 +|Localpc|**ssh -t -A -X <uefad>@sshgw.uef.fi ssh -Y <backend server>**|
 +^SSHFS ^Command^
 +|Localpc|**sshfs <uefad>@sshgw.uef.fi:/path local_directory**|
 +| |Unmounting|
 +|Localpc|**fusermount -u homedir**|
guides/ssh-gateway.txt · Last modified: 31.05.2022 11:09 by Administrator