Centos 6 login loop from console but ssh is fine

General support questions
Post Reply
vjfrogmt
Posts: 3
Joined: 2020/04/18 15:51:49

Centos 6 login loop from console but ssh is fine

Post by vjfrogmt » 2020/04/18 15:55:27

Migrated from Openvz to VMWARE
Was not able to use migration tool due to software raid

Migration was done by

Installing same version of OS to destination

From source

rsync -aAXv /* ssh root@1xxxxxip:/ --exclude={/tmp,/boot,/lib/modules,/etc/mtab,/etc/blkid,/etc/lvm,/etc/fstab,/etc/udev,/etc/sysconfig/network-scripts}

After this is done
I can login fine with ssh
but from the black console window I keep getting invalid password and this loops
I have created a new user also but this did not help.

Thanks

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6 login loop from console but ssh is fine

Post by TrevorH » 2020/04/18 17:52:42

Since you can login via ssh, did you read your logs? Start by looking at /var/log/messages and /var/log/secure and see if there clues there. If you tail those files in separate ssh sessions while you attempt to login at the console you should be able to see what each attempt generates, if anything.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

vjfrogmt
Posts: 3
Joined: 2020/04/18 15:51:49

Re: Centos 6 login loop from console but ssh is fine

Post by vjfrogmt » 2020/04/18 18:11:50

Aha
I didnt think to check secure,, didnt find anything in messages earlier

seems it jumbles user and passwords

When i try with root


Apr 18 20:07:55 pin-call login: pam_unix(login:auth): check pass; user unknown
Apr 18 20:07:55 pin-call login: pam_unix(login:auth): authentication failure; logname=LOGIN uid=0 euid=0 tty=console ruser= rhost=
Apr 18 20:07:55 pin-call login: pam_succeed_if(login:auth): error retrieving information about user rot
Apr 18 20:07:57 pin-call login: FAILED LOGIN 1 FROM (null) FOR rot, User not known to the underlying authentication module
Apr 18 20:08:22 pin-call login: pam_unix(login:auth): check pass; user unknown

if i retry, it would tell me it does not know the user for [mypassword] or some combination of username and password

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6 login loop from console but ssh is fine

Post by TrevorH » 2020/04/18 19:58:07

User *rot* ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

vjfrogmt
Posts: 3
Joined: 2020/04/18 15:51:49

Re: Centos 6 login loop from console but ssh is fine

Post by vjfrogmt » 2020/04/18 23:36:55

Yup
And I am 100% sure root was typed. I can see it in tty
Sometimes it tells me my user [my password] not found

Post Reply