Projekt

Allgemein

Profil

Howto ssh » Historie » Revision 2

Revision 1 (Jeremias Keihsler, 13.01.2017 09:53) → Revision 2/4 (Jeremias Keihsler, 13.01.2017 09:53)

h1. ssh 

 *ssh* is installed by default 

 h2. basic ssh usage 

 the most *nix-style way of getting help for @ssh@ is @man ssh@.  
 I assume that the @ssh@ port is @22@ and the involved firewalls are setup accordingly. 
 <pre><code class="bash"> 
 ssh user@example.com 
 </code></pre> 

 

 h2. ssh usage through another machine 

 What if you can't reach a machine directly but through a machine in between? 

 Of course you could @ssh@ twice, more compact form is: 
 <pre><code class="bash"> 
 ssh -t user@reachable ssh user@unreachable 
 </code></pre> 

 
 h2. X-session access 

 <pre><code class="bash"> 
 ssh -X user@example.com 
 </code></pre> 
 starting a X-program inside the remote shell will bring up a local X-window. 
 <pre><code class="bash"> 
 baobab 
 </code></pre> 

 
 h2. Port forwarding to local machine 

 the following command will forward port 3390 (e.g. @vrpd@) on @example.com@ to local 3501. 

 This is useful when a given port is only accessible local on a remote machine but not accessible from outside. 
 <pre><code class="bash"> 
 ssh -L 3501:localhost:3390 user@example.com 
 </code></pre> 
 now you can connect to the e.g. remote @vrdp@-session by simply on your local machine. 
 <pre><code class="bash"> 
 rdesktop-vrdp -kde localhost:3501 
 </code></pre>