Ask Your Question
0

ssh permission denied with correct password

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

thunder gravatar image

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

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

Comments

3

Please post full error messages here.

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

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

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

can you post the error messages or logs ??

Akshay gravatar imageAkshay ( 2013-04-11 00:32:19 -0600 )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 -0600 )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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

altomo gravatar image

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

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

Stats

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

Seen: 5,010 times

Last updated: Feb 03 '17