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.


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.


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)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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