Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 am trying to connect two Ubuntu laptops (server and client) using putty.

Here is the description:

  • LAPTOP B : UBUNTU 12.04 KERNEL : 3.2.0

Initially, made following attempts:

  • Connecting Ubuntu server to the Internet (wireless network) using referred link.

  • Installed openssh-server in the Laptop A, putty in Laptop B.

  • Seen the different options in the /etc/ssh/sshd_config

  • Shows Access Denied while trying to login in (after I have entered the correct password ) from the laptop B. Referred link.

Doesn't work. Please help.

Also tried this earlier:

ssh -v username@serveraddress -p 22

It says connection established with the server, but shows Permission Denied when password is entered.

share|improve this question

No need to use putty for this. You can use the terminal.

sudo apt-get install openssh-client
ssh username@serveraddress

Not sure this solves the problem, but you can try. This also handles your public keys, and should give you suggestions on what to do if there is a key error.

share|improve this answer

if you get a permission denied error, there different possibilites for that:

  • entered password is wrong.
  • User cannot access the default shell.
  • password logins are not allowed.
  • many other possibilities with errors accessing files..

on the server type

tail -f /var/log/messages

right before executing the ssh command from the client, can give you essential information about whats going on. (you leave the tail program with Ctrl+C)

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.