unable to ssh from one machine to another connected to the same wireless router
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
unable to ssh from one machine to another connected to the same wireless router
Hi!
I am trying to ssh between laptop1 (say 192.168.1.33, running Ubuntu 9.04) and laptop2 (192.168.1.39 running Ubuntu 9.10) both connected to the same router (192.168.1.1) wirelessly. Though I am able to ssh from laptop2 to laptop1, I am unable to do the vice-versa. Yes, openssh-server is installed and working on both the systems.
When I issue the following command from laptop 1 -
Quote:
$ ssh myname@192.168.1.39
I get the following message -
Quote:
ssh: connect to host 192.168.1.39 port 22: Connection refused
I have ufw installed on both the systems. I have added the rule -
Quote:
22 Allow Anywhere
to both. However, the connection is still being refused.
Any suggestions?
Thanking in advance,
Last edited by adityavpratap; 11-22-2009 at 03:58 AM.
Reason: providing more information
If you ssh daemon on 192.168.1.39 is still listening on port 512 then you need to tell it that on the ssh command. The last one you issued is connecting on port 22 probably because you forgot to add the '-p' parameter.
Code:
ssh -vvv 192.168.1.39 -p 512
Try again with the command above and post the output.
Ok! There is some development! Actually there are two files in /etc/ssh - ssh_config and sshd_config. The former was listening to 22 and the later was listening to 512. So I changed the port to 22 in sshd_config.
Now ssh 192.168.1.39 gives the following output -
Quote:
OpenSSH_5.1p1 Debian-5ubuntu1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.1.39 [192.168.1.39] port 22.
debug1: Connection established.
debug1: identity file /home/aditya/.ssh/identity type -1
debug1: identity file /home/aditya/.ssh/id_rsa type -1
debug1: identity file /home/aditya/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debian-6ubuntu2
debug1: match: OpenSSH_5.1p1 Debian-6ubuntu2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1p1 Debian-5ubuntu1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 192.168.1.39
Last edited by adityavpratap; 11-22-2009 at 10:15 AM.
Reason: typographic error!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.