User Tools

Site Tools


infrastructure:guides:ssh-tunnel

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
infrastructure:guides:ssh-tunnel [10.06.2019 12:06]
127.0.0.1 external edit
infrastructure:guides:ssh-tunnel [29.10.2019 15:10] (current)
Line 3: Line 3:
 ## SSH tunneling with config-file ## SSH tunneling with config-file
  
-Easiest way for ssh-tunneling is to add something following to $HOME/.ssh/config+Easiest way for ssh-tunneling is to store tunneling configuration permanently into ssh client software configuration.  
 + 
 +On linux or mac you can add frequently used tunneling configuration to $HOME/.ssh/config
  
     Host solu.uef.fi     Host solu.uef.fi
-       ProxyCommand ssh uefad_id@codon.uef.fi nc %h %p+       ProxyCommand ssh username@codon.uef.fi nc %h %p
  
     Host gitlab.uef.fi     Host gitlab.uef.fi
-       ProxyCommand ssh uefad_id@intron.uef.fi nc %h %p+       ProxyCommand ssh username@intron.uef.fi nc %h %p
  
 Now it is easy to connect for example to solu.uef.fi server, eq **ssh username@intron.uef.fi**. Also scp and sftp works with this. Now it is easy to connect for example to solu.uef.fi server, eq **ssh username@intron.uef.fi**. Also scp and sftp works with this.
 +
 +The most GUI clients have option to do the configuration through more user-friendly graphical user interface.
  
 ## Another way for forwarding any port ## Another way for forwarding any port
infrastructure/guides/ssh-tunnel.1560157596.txt.gz · Last modified: 29.10.2019 15:10 (external edit)