Allen McIntosh wrote:
>> My question is how I can establish a ssh connection between
>> both?
>>
>> The ip numbers for the linux machines (let's name them A and B) are
>> inet addr:192.168.2.32 Bcast:192.168.2.255 Mask:255.255.255.0 and
>> inet addr:192.168.2.33 Bcast:192.168.2.255 Mask:255.255.255.0,
>> respectively, while the DSL router has 192.168.2.1.
>>
>> I can ping A from B and B from A. And ssh is allowed by the firewall.
>> However, if I type
>> A> ssh myname@192.168.2.33
>> nothing happens. Do I need to add a gateway, use 'route add' or
>> something like this? I thought the connection should be possible
>> because A and B live on the same subnet?
>
> If ping works, then you have IP connectivity.
>
> 1) Check that the firewall on 192.168.2.23 isn't blocking incoming SSH
> connections. I know you said it isn't, but your symptoms suggest
> otherwise. Post the results of
> iptables -L
> (run as root) and let someone else check.
>
> 2) Check that you are running sshd on 192.168.2.23. E.g. post the
> result of running
> netstat -t -l
> on the machine that is supposed to be running the server.
The OP didn't say where the firewall was running.
If he's talking about an Internet firewall, it's as useless as
specifying a router, since the two machines are on the same subnet. If
the firewall is on one or the other machine (or both), then each has to
allow ssh traffic.
Otherwise, I agree, check those two things.
|