LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2015, 08:25 AM   #1
Mycado
Member
 
Registered: Jun 2006
Location: Paris, France
Distribution: RHEL
Posts: 73

Rep: Reputation: 15
Unhappy 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,
 
Old 06-08-2015, 10:35 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
log in physically and check the auth logs
 
Old 06-08-2015, 10:52 AM   #3
Mycado
Member
 
Registered: Jun 2006
Location: Paris, France
Distribution: RHEL
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AlucardZero View Post
log in physically and check the auth logs
Cannot. My access are denied (from both accounts).
 
Old 06-08-2015, 11:01 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
Quote:
Originally Posted by Mycado View Post
I have a physical access to the server
Quote:
Originally Posted by Mycado View Post
Quote:
Originally Posted by AlucardZero View Post
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?
 
Old 06-08-2015, 11:24 AM   #5
Mycado
Member
 
Registered: Jun 2006
Location: Paris, France
Distribution: RHEL
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by suicidaleggroll View Post
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
 
  


Reply

Tags
login, rhel, ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect anymore atheist Linux - Networking 1 10-21-2007 11:05 PM
I can't connect anymore!! ggeo Linux - Networking 3 10-09-2006 05:38 AM
why can't I connect to internet anymore fatblueduck Linux - Software 5 10-02-2005 03:45 PM
Can't connect to the internet anymore... joker20 Slackware 7 10-30-2004 01:07 PM
Can not connect to SWAT anymore lovswr Linux - Networking 0 11-08-2003 12:16 PM


All times are GMT -5. The time now is 05:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration