ssh between hosts in WLAN
Hello,
I need a solution to a problem that probably only needs a very common
configuration step.
I have two computers at home (both opensuse 10.1) that connect to the
internet through WLAN and a DSL router. This works without any
problems. 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?
Robert
Re: ssh between hosts in WLAN
> My question is how I can establish a ssh connection between[color=blue]
> 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?[/color]
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.
Re: ssh between hosts in WLAN
On Sat, 10 Feb 2007 10:11:36 -0800, r-.schmidt wrote:
[color=blue]
> Hello,
> I need a solution to a problem that probably only needs a very common
> configuration step.
>
> I have two computers at home (both opensuse 10.1) that connect to the
> internet through WLAN and a DSL router. This works without any
> problems. 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?
>
> Robert[/color]
If your firewall is properly configured and you have an SSH *server*
running on each machine and if you are using the standard ssh port (22),
then ssh myname@address should work. If your ssh SERVER is listening on a
different port you need to specify the port (i.e. ssh user@address -p
PORT_NUMBER).
Re: ssh between hosts in WLAN
Allen McIntosh wrote:[color=blue][color=green]
>> 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?[/color]
>
> 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.[/color]
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.