[PLUG] SSHing to a box behind a firewall... netcat maybe?

Paul Johnson baloo at ursine.ca
Sun Dec 28 13:32:02 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Dec 26, 2003 at 03:53:13PM -0800, Matt Alexander wrote:
> Computer A is running sshd and is behind a firewall that blocks all
> connections initiated from the outside.  Computer B is on the outside.
> 
> Is it possible for A to create a tunnel to B and then for the user at B to
> ssh back through that tunnel to A?

Yes.  Use some iptables magic to redirect port 22 on the outside
interface of Computer B to point to port 22 on Computer A.

- -- 
 .''`.     Paul Johnson <baloo at ursine.ca>
: :'  :    
`. `'`     proud Debian admin and user
  `-  Debian - when you have better things to do than fix a system
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/70unUzgNqloQMwcRAgkFAJwJyWlv//RW/iW2jMqoMPeQBneRewCg3Tf2
v6S0XZITgSvqG/AmwoWbDaE=
=MNrR
-----END PGP SIGNATURE-----




More information about the PLUG mailing list