Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to connect to ssh from ubuntu terminal but I don't know how. I have searched it on google but I don't understand. I have an ip adress, username and password. If someone can explain to me how it's done, please do. I have tried:

ssh root@ipadress

(instead of 'ipadress' from this command, of course it's the real ip adress)

then it requests the password, i write it, but it keep asking for it like this:

Enter passphrase for key '.../...':
Enter passphrase for key '.../...':

The connection dates are correct because from windows, it works to connect. Thank you

i have tried this:

 ssh user@localhost
 ssh: connect to host localhost port 22: Connection refused
share|improve this question

migrated from May 8 '13 at 8:52

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

Passphrase is a different thing than password. Apart from that, what does 'alias ssh' say? – golimar May 8 '13 at 8:18
Your private key is password-protected. You can regenerate it using ssh-keygen. – wroniasty May 8 '13 at 8:21
Secure Shell, but I am new to this. If you can give me an example how to connect it will be very helpful. Thank you! – user2358350 May 8 '13 at 8:22
Please give us some more information. What OS is your local machine running? Are both local and remote machines running Linux? – terdon May 8 '13 at 12:40

The computer you are trying to connect to, should have openssh-server running.

sudo apt-get install openssh-server will do the job for Ubuntu.

After that you can connect in that fashion:

ssh and the server will ask for your credentials.

Where x* is your ip and user is the user you want to connect as at your server, who should have an user account in the server.

share|improve this answer

The key name should be something like ~/.ssh/id_rsa Try to rename it ( mv ~/.ssh/id_rsa ~/.ssh/id_rsa.back ) and try again.

This way, the ssh command will not use your key to authenticate, but password instead.

share|improve this answer

If find out what was the problem. I needed to do this thing:

sudo apt-get install openssh-server

and after that write my personal passphrase and just after that write the password for the connection.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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