Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-12-2015, 08:49 AM   #1
LQ Newbie
Registered: May 2014
Posts: 2

Rep: Reputation: Disabled
SSH Connection Refused

Google search SSH Connection Refused and its the #1 auto-suggestion, tons of posts out there, none with answers.

I am not a Linux person, Please help!

Using Debian on a RaspberryPi connecting from Putty on a Windows machine. I have 2 identical Pi's with identical distros and configuration insofar as I know. I used to be able to SSH into both of them but now can only SSH into 1.

The one I am having problems I had temporarily forgotten how to start the SSH service so I typed "raspi-config" and used the SSH service enable in the advanced features menu.
I think that is what screwed it up. I didn't do that on the other one; I google searched how to start up the service and then I typed "sudo /usr/bin/sshd" and that worked on the other one.

But doing the same thing on the first one doesn't work. In fact not only does it not work it says cannot find that program at all. So I typed "sudo apt-get install ssh" to reinstall it but that doesn't work either. So then I typed "sudo /etc/init.d/ssh start" That got the SSH service running and it is now listening on port 22. But connection still refused.

From the Pi itself I can do "ssh -vvv localhost" and it successfully logs into itself, so the SSH service is obviously on and running.

Why are remote connections refused?

All help greatly appreciated!
Old 05-12-2015, 11:43 AM   #2
Registered: Apr 2013
Location: Arlington, WA
Distribution: Slackware
Posts: 96

Rep: Reputation: 10
Check your /etc/ssh/sshd_config file. Maybe there is an IP address defined there that is no longer being assigned to an interface.

Since you reinstalled the ssh server software, the host keys may have been changed or removed or ....? Check your syslog files for clues.


refused, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH - Connection Refused eminence Linux - Networking 15 02-11-2020 09:48 AM
SSH Connection Refused sirius12 Linux - Networking 12 04-25-2012 07:53 PM
SSH Connection Refused? lowpro2k3 Linux - Networking 2 11-04-2009 11:02 AM
ssh connection refused - trying to set up ssh server at home openSauce Linux - Server 10 10-18-2007 04:38 PM
ssh - connection refused Murdock1979 Linux - Networking 1 11-22-2006 11:21 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration