Difference between revisions of "Secure Shell"

From the Linux and Unix Users Group at Virginia Teck Wiki
Jump to: navigation, search
imported>Echarlie
(Tunneling)
imported>Echarlie
(Example)
Line 7: Line 7:
 
You can tunnel single ports or run a socks proxy with SSH. Google for SSH forwarding or see the howto below.
 
You can tunnel single ports or run a socks proxy with SSH. Google for SSH forwarding or see the howto below.
 
=== Example ===
 
=== Example ===
Socks proxy:
+
====Socks proxy====
 
This will open a Socks proxy on port 6969. Configure your applications to proxy through localhost:6969 to use the tunnel.
 
This will open a Socks proxy on port 6969. Configure your applications to proxy through localhost:6969 to use the tunnel.
 
  ssh -D 6969 wadsworth@acidburn.vtluug.org
 
  ssh -D 6969 wadsworth@acidburn.vtluug.org
  
Tunnel single port:
+
====Tunnel single port====
 
This opens a tunnel to milton.vtluug.org which is redirected through acidburn.
 
This opens a tunnel to milton.vtluug.org which is redirected through acidburn.
 
  ssh -L 6969:milton.vtluug.org:22 wadsworth@acidburn.vtluug.org
 
  ssh -L 6969:milton.vtluug.org:22 wadsworth@acidburn.vtluug.org

Revision as of 17:46, 4 April 2016

Secure Shell or SSH is a secure means of controlling a remote machine.

Closing a Hung Session

Type enter, tilde (~), period, enter to exit a hung SSH session.

Tunneling

You can tunnel single ports or run a socks proxy with SSH. Google for SSH forwarding or see the howto below.

Example

Socks proxy

This will open a Socks proxy on port 6969. Configure your applications to proxy through localhost:6969 to use the tunnel.

ssh -D 6969 wadsworth@acidburn.vtluug.org

Tunnel single port

This opens a tunnel to milton.vtluug.org which is redirected through acidburn.

ssh -L 6969:milton.vtluug.org:22 wadsworth@acidburn.vtluug.org

now, on your machine, open a new shell, and run:

ssh localhost -p 6969 -l wadsworth

to ssh into milton as wadsworth.

See Also

External Links