Page 1 of 1
laptop to desktop networking
Posted: Sat May 13, 2006 12:05 am
by Todd_Z
what software do I need to ssh between two machines? I'm trying to configure the easiest way to connect my laptop to my desktop and be able to ssh between the two.
Posted: Sat May 13, 2006 12:56 am
by Benjamin
Try putty.
Posted: Sat May 13, 2006 3:30 am
by timvw
You would at least need a ssh server and a ssh client. And you can find them for most operating systems...
(If you're looking for something similar to windows remote desktop i suggest that you look at (free/open/k)vnc).
Posted: Sat May 13, 2006 5:55 pm
by Todd_Z
If I have a laptop and a desktop not connected to a router... they are just connected to each other, then what address would I use to communicate between each other?
For example, right now when i want to connect to the desktop, i run:
ssh 192.168.2.3
vice-versa would be 192.168.2.4
However, that address is given by dhcp through the router. If i take the router out of the picture, what is the ssh command to get to the other comp?
Posted: Sat May 13, 2006 6:00 pm
by timvw
what kind of connection? simply two ethernet cards with a patch cable? In that case you can simply assign an ip to both network cards and add a route to the other (choosen) ip ...
With parallell and serial connections you can also use (plip and slip)..
In all situations you just get/assign two ip's and add a route to the other one.. And then you can simply connect with ssh <user>@<otherip>.
Posted: Sat May 13, 2006 6:02 pm
by Todd_Z
correct, i simply have my laptop and desktop with ethernet adapters and a cat5 cable connecting them.
How do I "get/assign" an ip address?
something like....?
Posted: Sat May 13, 2006 6:21 pm
by timvw
Todd_Z wrote:correct, i simply have my laptop and desktop with ethernet adapters and a cat5 cable connecting them.
Make sure it is a patched one (not straight).
Todd_Z wrote:
How do I "get/assign" an ip address?
something like....? sudo ifconfig 10.0.0.1 up
That's right...
And you'd add a route like:
route add 10.0.0.2 eth0
Posted: Sat May 13, 2006 6:22 pm
by Todd_Z
how do i know if its patched and not straight?
Posted: Sat May 13, 2006 6:29 pm
by Todd_Z
Desktop:
Code: Select all
ifconfig eth0 down
ifconfig eth0 10.0.0.1 up
Laptop:
Code: Select all
ifconfig eth0 down
ifconfig eth0 10.0.0.2 up
route add 10.0.0.1 eth0
Desktop:
Pinging between the two hangs
SSH produces:
Code: Select all
ssh: connect to host 10.0.0.1 port 22: No route to host
Posted: Sun May 14, 2006 4:42 am
by timvw
Apparently ifconfig adds already a route for the ip, so the roud add is not needed...
And i should have used the term 'crossover cable' instead of patch cable..
http://en.wikipedia.org/wiki/Crossover_cable.
Posted: Sun May 14, 2006 8:19 am
by Todd_Z
sweet. I'll make myself a crossover as soon as I get the chance.
Posted: Sun May 14, 2006 11:22 am
by timvw
I just bought a little patch-device (no need to mess with cables themselves..) costed like 0.50$...
Posted: Sun May 14, 2006 3:20 pm
by Todd_Z
Got a link?

Posted: Mon May 15, 2006 4:39 am
by timvw
Should be available in any computershop (just bought it in a very small, local, unspecialized one... and thus can't give you a link

)