Re: Connect two pcs with crossover cable
Rodolfo Medina <rodolfo.medina@gmail.com> writes:
> Hi: I'm new to this list and to ssh program.
>
> I've connected two pcs with a crossover cable and installed ssh on both but
> they don't seem to `see' each other: I edited /etc/network/interfaces on the
> first pc as follows:
>
> allow-hotplug eth0
> iface eth0 inet static
> address 192.168.0.1
> netmask 255.255.255.0
>
>
> , and in the second pc the same with 192.168.0.2 in place of 192.168.0.1. The
> command `ssh 192.168.0.2' given from the first machine produces no output. I
> want to use rsync with ssh to share data between the two pcs.
>
> I'm stuck, never connected two pcs together but now I need to: help highly
> appreciated.
Timothy Yip <aurelz@gmail.com> writes:
> Hi,You would probably want to do some tests to see if the network really is
> up first.- Check by doing ifconfig eth0 on both machines,
Thanks for your help, and apologize for my ignorance.
On the first machine:
# ifconfig eth0
eth0 Link encap:UNSPEC HWaddr 00-03-0D-53-25-5C-86-16-00-00-00-00-00-00-00-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
On the second machine:
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:23:8b:a2:6b:02
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
> and make sure they have the given IPs-
I don't know: do they?
> Then try pinging both ways and see if you get a return
I don't know how to do that
> - Check the lights on the NICs are active-
I see a red light on the NIC of the second machine, no light on the NIC of the
first machine
> Make sure SSH server is running
> by: /etc/init.d/ssh-server status-
I don't know how to do that
> When initiating a connection do ssh -vvv
> 192.168.0.2 for more verboseCopy and paste the results.
# ssh -vvv 192.168.0.2
OpenSSH_4.3p2 Debian-9, OpenSSL 0.9.8c 05 Sep 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.0.2 [192.168.0.2] port 22.
>
> That's all I can think of for now, until more info are
> provided.Regards,Tim
Thanks for any further help!
Rodolfo
Reply to: