This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
guides:ssh-gateway [04.12.2019 15:52] Juha Kekäläinen created |
guides:ssh-gateway [31.05.2022 11:08] Administrator |
||
---|---|---|---|
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 *< |
- | ## SSH-connection to backend | + | **NOTE:** To get access to SSH-gateway |
- | ^at prompt | + | ^SSH-Connection |
|Localpc|**ssh < | |Localpc|**ssh < | ||
- | |[< | + | |sshgw|**ssh <backend server> |
- | ||or with the one command| | + | | |or with the one command| |
|Localpc|**ssh -t < | |Localpc|**ssh -t < | ||
+ | |Localpc with X11 Forwarding|**ssh -X -t < | ||
+ | |||
+ | You can automate this all by creating local configuration file for the ssh (**$HOME/ | ||
+ | ``` | ||
+ | # content for the $HOME/ | ||
+ | Host <backend server> | ||
+ | ForwardX11 yes | ||
+ | ProxyCommand | ||
+ | ``` | ||
+ | |||
+ | After you have created the configuration file you can directly connect to the <backend server> | ||
+ | ^SSH-Connection ^Command^ | ||
+ | |Connect|**ssh < | ||
+ | |Download a file|**scp < | ||
+ | |Upload a directory|**scp -r local/ | ||
+ |