laptop to desktop networking

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

laptop to desktop networking

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Try putty.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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).
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post 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?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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>.
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post 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....?

Code: Select all

sudo ifconfig 10.0.0.1 up
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post by Todd_Z »

how do i know if its patched and not straight?
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post 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:

Code: Select all

route add 10.0.0.2 eth0
Pinging between the two hangs
SSH produces:

Code: Select all

ssh: connect to host 10.0.0.1 port 22: No route to host
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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.
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post by Todd_Z »

sweet. I'll make myself a crossover as soon as I get the chance.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

I just bought a little patch-device (no need to mess with cables themselves..) costed like 0.50$...
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post by Todd_Z »

Got a link? :wink:
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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 ;))
Post Reply