Ask Your Question

ssh permission denied with correct password

asked 2013-04-10 20:03:45 -0500

thunder gravatar image

updated 2014-04-11 16:44:11 -0500

remjg gravatar image

I'm trying to ssh to a server, and I'm sure im entering the correct password, but I get an error that says: Permission denied, please try again.

I've ssh'ed into this server before, and I'm not sure why it's no longer working.

edit retag flag offensive close merge delete



Please post full error messages here.

skytux gravatar imageskytux ( 2013-04-10 20:45:49 -0500 )edit

ssh -vvv might reveal what't is going wrong.

jmt gravatar imagejmt ( 2013-04-10 22:55:33 -0500 )edit

can you post the error messages or logs ??

Akshay gravatar imageAkshay ( 2013-04-11 00:32:19 -0500 )edit

If you know the root password, try ssh'ing in as root too. If that works, you can verify that your original user's password is right. If not, more logs please...

wholevin gravatar imagewholevin ( 2013-04-11 06:01:32 -0500 )edit

Unless the OP has modified /etc/ssh/sshd_config on the server, logging in as root isn't allowed. However, you might want to make sure that the firewall's allowing the port (22 by default) in and that (assuming the server uses it) there aren't any SELinux alerts there.

sideburns gravatar imagesideburns ( 2013-04-12 15:25:10 -0500 )edit

A common mistake I've faced is firewall blocking incoming connections to port 22.

tezcatl gravatar imagetezcatl ( 2013-07-04 20:51:25 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-02-03 06:54:51 -0500

altomo gravatar image

updated 2017-02-03 06:56:04 -0500

if your .ssh folder has too generous permissions, login will not be possible for security reasons. Try setting the folder's permissions to 700 aka read/write/execute for owner, but nothing for group/other.

edit flag offensive delete link more

Question Tools


Asked: 2013-04-10 20:03:45 -0500

Seen: 5,090 times

Last updated: Feb 03 '17