Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 have two Ubuntu machines on the same network. I installed openssh-server and client. When I try to connect through the terminal I get the following message:

Permission denied, please try again

Then after attempting to type my password in get the last message:

Permission denied (publickey,password)

However I can ssh to the computer through Nautilus, with no problem.

share|improve this question
Can you share the ssh command line you are using? Do you have a .ssh/config file on the guest machine? – Danny Staple Sep 24 '11 at 22:00

Logging in from the terminal by default tries to log into the remote machine with your username on the local machine. In Nautilus you have to explicitly type in your username on the remote machine. I am guessing that your local and remote usernames do not match.

Use ssh user@server to log in with a different username.

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.