ssh tunnel help

2013-05-22 Thread Nelson Green
Hello all, Seems I'm a bit brain dead this morning, and I'm having difficulty remembering how to set up an ssh tunnel to our development server through the public facing system I can ssh into pub1 just fine, and from that shell I can ssh into the development server, dev1. What I want to do is to

Re: ssh tunnel help

2013-05-22 Thread Darac Marjal
On Wed, May 22, 2013 at 08:15:24AM -0500, Nelson Green wrote: Hello all, Seems I'm a bit brain dead this morning, and I'm having difficulty remembering how to set up an ssh tunnel to our development server through the public facing system I can ssh into pub1 just fine, and

Re: ssh tunnel help

2013-05-22 Thread Lars Noodén
On 5/22/13 4:15 PM, Nelson Green wrote: ... connect my psql client directly to that development server, on it's port 5432. So I want to be able to locally run a command similar to: [me@mymachine]$ psql -U dbusername -h dev1 -p xxx where, if I remember correctly, xxx is the port I tunnel into

Re: ssh tunnel help

2013-05-22 Thread Lars Nooden
On Wed, 22 May 2013, Lars Noodén wrote: One way you could try is like this[1]: ssh -L 5432:localhost:5432 \ -o 'ProxyCommand=ssh -W %h:%p pub1.example.org' \ devel.example.org As a follow up here is a method that should work for older versions of ssh: ssh -L