Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com May 8 '13 at 8:52

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

1  
Passphrase is a different thing than password. Apart from that, what does 'alias ssh' say? –  golimar May 8 '13 at 8:18
    
This belongs on superuser. IUf you want a good answer –  jim mcnamara May 8 '13 at 8:20
2  
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
add comment

3 Answers

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
add comment

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
add comment

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 user@xxx.xxx.xxx.xxx 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
add comment

Your Answer

 
discard

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.