Two ssh servers on the same ip

Andrew Hunter andy.hunter at rogers.com
Sun Dec 10 01:35:51 UTC 2006


On Saturday 09 December 2006 16:46, Cody Somerville wrote:
> Andrew could forward port xyz to box1 and port yzx to box2. However, you
> can not forward one port to two different computers unless you used some
> sort of virtual host system at the router (and most routers don't have
> that) that would know what machine to forward to by the domain name used to
> connect.
>
> - Cody

Changing the port on the second ssh server is proably the way to go, but I am 
not sure how to set the second ssh server to listen on that port. 

I am guessing that there is a config file I just need to edit, but I am not 
sure which one.
>
> On 12/9/06, R. Wood <au516 at freenet.carleton.ca> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Allegedly, on Sat, Dec 09, 2006 at 05:19:26PM -0400, Cody Somerville
> >
> > stated:
> > > On 12/9/06, Andrew Hunter wrote:
> > > > On Saturday 09 December 2006 13:36, Andrew Hunter wrote:
> > > > > Hello,
> > > > >
> > > > > Would anyone be able to tell me how to run two ssh servers on the
> > > > > same network with the same external ip?
> > > > >
> > > > > I know how to do the dns forwarding, but am confused on how to
> > > > > route the traffic to the correct machine once it is inside the
> > > > > intranet.
> >
> > [snip]
> >
> > > > I also need to run this as a remote desktop, if that makes a
> > > > difference.
> > >
> > > You could try running the ssh servers on different ports.
> > >
> > > Thanks,
> > > Cody
> >
> > I'm not sure that would work if Andrew is using NAT and wants to connect
> > directly to 2 different boxen.
> >
> > I saw an article on doing this once, but I didn't archive the URL...
> >
> > Have Fun with GNU/Linux,
> > Raymond
> > - --
> > "Be Nice, or Leave - By Order of the Management"
> > (Sign above door, Black Sheep Inn, Wakefield)
> > GPG Fingerprint: 2E4D 8605 DD48 E80F F893  1C02 B65D 86D9 3B3C 0E03
> > Encrypted E-mail Preferred  |  http://www.yeeguy.com/freefall/
> > Bush-whacked 2004! Try to relax and enjoy the Chaos :-)  --^
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.2.2 (GNU/Linux)
> >
> > iD8DBQFFeysKtl2G2Ts8DgMRAj7xAJ0ewN0s/OBRfGaVEziI511zFedW7ACfQHcv
> > 4/Xd4TvNcHDqAgqqILufnT4=
> > =tCJg
> > -----END PGP SIGNATURE-----
> >
> > --
> > ubuntu-ca mailing list
> > ubuntu-ca at lists.ubuntu.com
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-ca

-- 
"First, God created idiots. But that was just for practise, then he made 
school boards."
   -Mark Twain 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-ca/attachments/20061209/d5bc0441/attachment.pgp>


More information about the ubuntu-ca mailing list