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
Previous revision
guides:ssh-gateway [04.12.2019 16:35]
Juha Kekäläinen
guides:ssh-gateway [05.12.2019 12:28] (current)
Juha Kekäläinen
Line 1: Line 1:
 # Setting up SSH-gateway # Setting up SSH-gateway
  
-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. Replace the <backend server> with your desired server address.
  
-## SSH-connection +^SSH-Connection ​^Command^
- +
-^at prompt ​^Command^+
 |Localpc|**ssh <​uefad>​@sshgw.uef.fi**| |Localpc|**ssh <​uefad>​@sshgw.uef.fi**|
 |sshgw|**ssh <backend server>​**| |sshgw|**ssh <backend server>​**|
Line 11: Line 9:
 |Localpc|**ssh -t <​uefad>​@sshgw.uef.fi ssh <backend server>​**| |Localpc|**ssh -t <​uefad>​@sshgw.uef.fi ssh <backend server>​**|
  
-## sshfs +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. 
-^at prompt ​^Command^ +``` 
-|Localpc|**sshfs <​uefad>​@sshgw.uef.fi:/​path homedir -o PubKeyauthentication=no**| +content for the $HOME/​.ssh/​config file 
-| |Unmounting+Host <backend server>​ 
-|Localpc|**fusermount ​-u homedir**|+    ForwardX11 yes 
 +    ProxyCommand ​   ssh -W %h:%p sshgw.uef.fi 
 +``` 
 + 
 +After you have created the configuration file you can directly connect to the <backend server> ​ 
 +^SSH-Connection ​^Command^ 
 +|Connect|**ssh <​uefad>​@<backend server>**| 
 +|Download a file|**scp <​uefad>​@<​backend server>:/​path/​to/​file local/​file/​system**
 +|Upload a directory|**scp -r local/​directory <​uefad>​@<​backend server>:/​path/​to/​destination**| 
guides/ssh-gateway.1575470140.txt.gz · Last modified: 04.12.2019 16:35 by Juha Kekäläinen