Outgoing SSH connection behind a firewall
From: Augustus SFX van Dusen (ASFXvD_at_story.net)
Date: 12/01/04
- Next message: Chris Nystrom: "Re: SSH pipe probelm"
- Previous message: c3dy8911r: "Re: FTP and SSH access question"
- Next in thread: Richard E. Silverman: "Re: Outgoing SSH connection behind a firewall"
- Reply: Richard E. Silverman: "Re: Outgoing SSH connection behind a firewall"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 01 Dec 2004 21:55:01 GMT
I am trying to establish an outgoing SSH connection, from a box A that
lives behind a firewall. The firewall is in another box B that has two
NICs. NIC N1 has IP address I1, and corresponds to my internal LAN. NIC N2
has IP address I2, and is connected to a hardware router R, which exposes
an IP address I3 to the internet. That is, I3 is my externally visible IP
address.
A has internet access by IP masquerading via B. Thus, if I understand
things correctly, packets generated in A for a box C somewhere in the
internet are first sent to B, which manipulates them so that when they get
to C they are coming from IP address I3 - no reference remains of whatever
IP address A has in my LAN, of course. The returning packets are forwarded
by B to A appropriately.
What I would like is to be able to start SSH connections from A to C,
so that I do not have to type my password for every new connection.
Usually this can be done by generating a private/public key pair in A with
ssh-keygen, copying the public key to the appropriate location in C, and
adding my unlock password by means of ssh-add once at the beginning of my
session. From that point onwards I should be able to ssh from A to C
without typing any passwords, at least as long as my session stays up.
Well, this does not work, in the setup described above. I believe this is
because, when generating in A the file that contains the public key,
ssh-keygen uses local naming information for A - which is not what is
arriving to C, which just receives packet information from the external
IP address I3.
Can anybody suggest a way around this? I can still establish an SSH
connection from A to C, but I am prompted for a password every time -
which is what I want to avoid.
- Next message: Chris Nystrom: "Re: SSH pipe probelm"
- Previous message: c3dy8911r: "Re: FTP and SSH access question"
- Next in thread: Richard E. Silverman: "Re: Outgoing SSH connection behind a firewall"
- Reply: Richard E. Silverman: "Re: Outgoing SSH connection behind a firewall"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|