Crossover cable connection between 2 computers.

Eberhard Roloff tuxebi at gmx.de
Fri Mar 13 20:32:04 UTC 2009


Ric Moore wrote:

> 
> Can you go to one machine and ping the other? You do have static ip
> addresses? Not sure if DHCP will handle this. But, once both machines
> see each other on the local net, you should be able to copy back and
> forth using scp. (man scp) If they don't recognize each other and answer
> a ping, nothing will happen, so best start at ground-zero. :) Ric
> 

dhcp only can handle a crossover cable connection, if one (and only 
one!) of the two machines acts as a dhcp server.

This is very unlikely, so you can handle it as follows:
go to one PC, open konsole and type:

ifconfig eth0 192.168.1.1

Then go to the other machine, do the same and type

ifconfig eth0 192.168.1.2

These commands assume that "eth0" is your network interface. If it is 
named differently, adjust the command(s) accordingly.

Now go to one PC (192.168.1.1) and try to ssh to the other PC like this:
ssh 192.168.1.2

this command assumes that your username on each machine is the same. If 
not, you will need to adjust the ssh command accordingly.

The reason to begin with ssh is that you will easily see, what's wrong, 
if the connection fails. E.g. you possibly did not install the 
openssh-server on the other machine or you had done ssh previously, when 
both machines had different addresses and now you will have conflicting 
ssh keys and so on...

After resolving these issues you can also use konqueror with 
fish://192.168.1.2 and do just the same, just via GUI.

Kind regards
Eberhard





More information about the kubuntu-users mailing list