Networking Forums

Networking Forums > Computer Networking > Linux Networking > ssh between hosts in WLAN

Reply
Thread Tools Display Modes

ssh between hosts in WLAN

 
 
r-.schmidt@web.de
Guest
Posts: n/a

 
      02-10-2007, 05:11 PM
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

 
Reply With Quote
 
 
 
 
Allen McIntosh
Guest
Posts: n/a

 
      02-10-2007, 06:26 PM
> 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.
 
Reply With Quote
 
johnny
Guest
Posts: n/a

 
      02-10-2007, 07:28 PM
On Sat, 10 Feb 2007 10:11:36 -0800, r-.schmidt wrote:

> 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



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).
 
Reply With Quote
 
Allen Kistler
Guest
Posts: n/a

 
      02-10-2007, 08:53 PM
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed locating driver for ACER WLAN 11g USB Dongle (WLAN-G-US1) Chris Mitchell Wireless Networks 5 12-26-2007 04:48 PM
Wlan design: access point vs. wlan interface no_one_reads_it@gmx.net Linux Networking 0 09-17-2006 03:42 PM
Is there any way we would be able to detect which devices/laptops in a wlan are using 802.11b & which are using 802.11g cards? 802.11b clients in 802.11g wlan avirup_dasgupta@indiatimes.com Wireless Internet 6 09-20-2005 04:33 PM
hosts.deny and hosts.allow problem dan Linux Networking 3 06-15-2005 07:26 PM
Compiling wlan wlan-ng-0.2.1-pre9 on Redhat 8 kernel patch 2.4.20-20.8 thwbecker Linux Networking 1 09-09-2003 09:37 AM



1 2 3 4 5 6 7 8 9 10 11