Server Fault is a question and answer site for system and network administrators. 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.

Any help is greatly appreciated

share|improve this question

migrated from Sep 25 '11 at 4:57

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

It looks like an ssh-agent issue. Access to your ssh agent is via the environment variables $SSH_AUTH_SOCK and $SSH_AGENT_PID. These are inherited by child processes. How are you launching the terminal? – Keith Thompson Sep 24 '11 at 20:02

A few questions for you:

Do you get the permission denied after entering your password, or is this just after executing ssh?

Are you logging in as a specific user? (eg. ssh user1@myserver)

Are the computers on the same network? If they are not do you put in the full computername? (eg. ssh

This should help pinpoint where the problem is occuring.

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.