ssh worked when set up but now fails - port 22: Connection refused

Asked by Ron Rhodes

I have a raspberrypi running raspbian and I set up ssh to control it from my Samsung laptop running Ubuntu 12-04-2. This worked OK for a while but has now stopped working with the message "ssh: connect to host 192.168.0.5 port 22: Connection refused", I can't recall having made ay changes to cause this to happen.
I have Googled for a solution to this problem, which seems to be a common one, but there doesn't appear to be an effective solution.
Any help in finding a solution will be greatly appreciated.
Regards, Ron.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

I suggest you check the server to be sure it can connect to itself. Also check for bugs reported with Raspian for this. Also try connecting from other OSes. If they fail too then it is a Raspian issue and not Ubuntu

Revision history for this message
Ron Rhodes (owdronrhodes) said :
#2

The above answer did not help to solve my problem.

Further investigation by me has solved the problem. I found that the IP Address I was using, 192.168.0.5, had somehow changed to 192.168.0.3. This was probably due to moving the Pi around. Changed the ssh address and its working OK! So now I know what to do in future.

Regards, Ron Rhodes.