Click to See Complete Forum and Search --> : Ssh
gbell7211
04-01-2003, 12:18 AM
Evening
I'm planning on using putty to ssh from my windows box to linux box, what I need to know is how I go about seeting it up seeing that both boxes will be sharing the same ip through a router?
I'm a total n00b at this and have googled for answers but have yet to come across any.
If anyone knows how I go about this or knows of a decent link that I can read, I'd appreciate it.
Thanks
Gbell
root.veg
04-01-2003, 08:21 AM
What I think you may be talking about is using your linux box as a gateway/router so that your internet connection you got from your ISP (on one IP address) can be shared between both boxes... am I close?
If this is what you want to do then you need to set up "IP Masquerading" on the gateway/router box. I think this term is peculiar to Linux, and other OSes call it "NAT".
That way you can use the publicly-routable IP you got from your ISP and share the connection between your two boxes which you'll assign *private* IP addresses to.
Try googling for "IP Masquerading" and searching the Networking forum on this site. Plus there's a good IP Masq howto at www.tldp.org .
Ssh is a separate issue though - you don't need ssh to set up IP-Masq-ing.
chrism01
04-01-2003, 11:08 AM
Actually, if they're both local boxes on a lan, then they should both have private different ip addresses eg
Linux: 192.168.0.1
Win: 192.168.0.2
This has nothing to do with your internet connection unless you plan on using ssh across the net.
Typically, if your linux box is on the internet and on a lan, then it has 2 interfaces eg eth0, eth1.
As an example, you'd use dhcp to get a public ip for eg eth0 and assign the private address above to eth1.
The win box interface will be eth0.
If the router is a separate (3rd) box, then the interface on the linux box would be eth0, 192.168.0.1
HTH
gbell7211
04-01-2003, 12:34 PM
Exactly what I was looking for thanks