I am trying to run ssh command from one machine to another and gets the following error message ssh: connect to host port 22: Connection refused It is able to ping the same machine properly. I have ssh installed on both the machines.

Can anyone tell the solution to this problem.

  • 1
    By "I have ssh installed on both machines", did you mean, that you installed the ssh server on one and an ssh client on the other machine? – KingCrunch Jun 27 '11 at 17:34
  • 1
    You have to install/start ssh server on the machine you are want to connect to. – pajton Jun 27 '11 at 17:34
  • 2
    This is off-topic for StackOverflow as it doesn't have anything to do with programming. It's better placed on ServerFault or SuperUser. – CanSpice Jun 27 '11 at 17:37

Make sure you have start sshd service.

service  sshd start
  • It seems there was some problem with the installing part only. I re installed it and now it works properly. – Vishal Jun 27 '11 at 17:41
  • ok. nice , your problem is solved. This site is for programming question only . If you have setup or server config question please use appropriate site from ServerFault or SuperUser – Vivek Goel Jun 27 '11 at 17:42
  • Sorry for inappropriate question. Will take care in future. – Vishal Jun 27 '11 at 17:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.