I am geeting this error whenever i am using the below command in ubuntu: ssh localhost

it shows the error unable to connect to local host at port 22:connection refused

Please help me with this

link|improve this question
feedback

migrated from stackoverflow.com Apr 29 '11 at 9:26

This question came from our site for professional and enthusiast programmers.

4 Answers

Do an ifconfig and check that Local Loopback is enabled.

link|improve this answer
feedback

It probably means that you don't have sshd running, or it could be a misconfigured firewall (yes, you can firewall off localhost).

link|improve this answer
how can i turn on sshd ..plz help i am very new to linux environment?? – Adi Apr 28 '11 at 3:52
feedback

Maybe you don't have start server sshd.

ps aux | grep sshd to check it

link|improve this answer
how to turn on sshd ? plz help on this – Adi Apr 28 '11 at 3:59
feedback

You need a ssh server. Read the community documentation on it for Ubuntu (it's short).

Install it via Terminal:

sudo apt-get install openssh-server

And try connecting:

ssh localhost
link|improve this answer
feedback

Your Answer

 
or
required, but never shown