Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 7 years ago.
I am trying to see if ssh is properly configured on Ubuntu 11.04:
ashish@ubuntu:~$ ssh localhost
ssh: connect to host localhost port 22: Connection refused
ashish@ubuntu:~$
What do I do from here?
Try:
sudo apt-get install openssh-server
It's most likely that the ssh server is not installed as only the client is installed by default.
Make sure the SSHD is running, looks like it is not.
Try
service sshd start
I am not familiar with ubuntu, but this should work.
Bonus if you need to start the X server you run this:
ssh -x <host>