Re: How to automate a ssh login?

From: Thomas (tfz_at_gmx.net)
Date: 07/29/04


Date: Thu, 29 Jul 2004 23:22:42 +0200

Hi Mike,

thanks for the advice.

> try the following
> ssh -t -l <user> first Linux Machine 'ssh -l <user> second linux
> machine'
> If password authentication is used, you will be required to enter
> passwords for two machines.

What I wanna do is a "Tunneling Gateway":
Let the first linux machine connnect by using ssh -l -i -g -L [...] the
other linux machine without have to manually initiate the ssh login on
machine 1. The first linux machine should automatically (by using a
shell script? e.g after a reboot) login to the 2nd linux machine and
initiate a port-forwarding with the -g option. Now any other machine on
the network can use the tunnel between linux machine one and linux
machine two without have to initiate an own tunnel.

--LAN 1---|
| |
| |--hub--linux 1--router >----< router--linux 2--hub---LAN 2
| ssh-tunnel |
RDP-Client RDP |
                                                             |
                                                          Terminal-Server

Maybe you can shed some additional light on me?

Thx so much in advance.
kind regards, Tom



Relevant Pages

  • Re: ssh and vnc port forwarding
    ... think it covers the loopback settings. ... magazine that covers the concepts behind routing through the ssh tunnel. ... > are 2 windows XP boxes and a linux server in the middle for the shell. ... > to 5900 on the linux machine. ...
    (comp.security.firewalls)
  • Re: ssh and vnc port forwarding
    ... think it covers the loopback settings. ... magazine that covers the concepts behind routing through the ssh tunnel. ... > are 2 windows XP boxes and a linux server in the middle for the shell. ... > to 5900 on the linux machine. ...
    (comp.security.ssh)
  • ssh and vnc port forwarding
    ... I am trying to tunnel a VNC session through a secure shell. ... are 2 windows XP boxes and a linux server in the middle for the shell. ... forward to 5900 on the linux machine. ...
    (comp.security.firewalls)
  • ssh and vnc port forwarding
    ... I am trying to tunnel a VNC session through a secure shell. ... are 2 windows XP boxes and a linux server in the middle for the shell. ... forward to 5900 on the linux machine. ...
    (comp.security.ssh)