On Sun, Aug 19, 2012 at 10:31 PM, David Relson <rel...@osagesoftware.com> wrote: > G'day, > > I've volunteered to do some data entry for my local bike club. This > involves a java application (jar file) and a tunnel to a mysql > server. I have detailed PuTTY configuration instructions but haven't > yet succeeded in converting them to ssh options. > > The configuration options include: > > Seconds between keepalives -- 120 > Don't start a shell or command > Forwarded port: > source port number - PORT > Destionation: MACHINE.DOMAIN.COM > Host - IP_Address > Login - userid > Password - pw > > Using "ssh -N userid@IP_Address" gives me a password prompt and no > command prompt - both good. > > How do I specify the forwarded port?
If I understand correctly, with -L: ssh -L XX:machine2:YY user@machine1 This command will connect you to the "machine1" host with user "user", and any connection to the port XX to the machine you are running the ssh command from, will redirect the connection to the "machine2" host in the YY port. Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México