LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot connect anymore with ssh (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-connect-anymore-with-ssh-4175544803/)

Mycado 06-08-2015 07:25 AM

Cannot connect anymore with ssh
 
Dear all,

From yesterday, I cannot connect on a server. It's a rhel 7.1, properly installed 1 month ago, not special configuration.

I did have 2 logins: "root" and "parta". I've got both password, and both are not working anymore... But, I did not change anything, nor I someone else connected to this server.

There is the ssh -vvvv:
Code:

[..]
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
root@xxxx's password:
debug3: packet_send2: adding 64 (len 58 padlen 6 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
Permission denied, please try again.

I have a physical access to the server, so I can recover the root password (boot in recover mode), but I don't think it's only a "password" problem. Can it be something else ? (wrong permissions,..?)


Best regards,

AlucardZero 06-08-2015 09:35 AM

log in physically and check the auth logs

Mycado 06-08-2015 09:52 AM

Quote:

Originally Posted by AlucardZero (Post 5374006)
log in physically and check the auth logs

Cannot. My access are denied (from both accounts).

suicidaleggroll 06-08-2015 10:01 AM

Quote:

Originally Posted by Mycado (Post 5373945)
I have a physical access to the server

Quote:

Originally Posted by Mycado (Post 5374016)
Quote:

Originally Posted by AlucardZero (Post 5374006)
log in physically and check the auth logs

Cannot. My access are denied (from both accounts).

Then it's not an ssh or network problem. It could be something got screwed up in /etc/passwd. When you go into recover mode, can you reset the passwords? Does that change anything? What if you set up ssh keys to allow another machine to log in without a password?

Mycado 06-08-2015 10:24 AM

Quote:

Originally Posted by suicidaleggroll (Post 5374025)
Then it's not an ssh or network problem. It could be something got screwed up in /etc/passwd. When you go into recover mode, can you reset the passwords? Does that change anything? What if you set up ssh keys to allow another machine to log in without a password?


Yes, it's a production server, so I'll need to wait a little bit to reboot in recover mode.
I'll check:
  • /etc/passwd
  • /etc/sshd


All times are GMT -5. The time now is 11:05 PM.