Article 6PB64 Bad authentication type; allowed types: [u'publickey'][/CODE]

Bad authentication type; allowed types: [u'publickey'][/CODE]

by
LinuxRSA
from LinuxQuestions.org on (#6PB64)
Hi All

I have a Ubuntu 20.04 LTS server we monitoring.

The monitoring application is able to reach and work on 50 other servers besides the one below.

It gives the following error in the logs when trying to connect.

Code: General Exception Occurred: Bad authentication type; allowed types: [u'publickey']The app comunicates to the server via ssh.

Authentication is managed via active directory so credentials are consistent.

These are the entries in my /var/log/auth log.

PHP Code:Jul1912:55:48nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/sys01.int/linux_mon_user;USER=root;COMMAND=validate
Jul1912:55:48nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/sys01.int/linux_mon_user;USER=root;COMMAND=/usr/bin/ls
Jul1912:55:48nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/sys01.int/linux_mon_user;USER=root;COMMAND=/usr/bin/netstat
Jul1912:55:48nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/sys01.int/linux_mon_user;USER=root;COMMAND=/usr/bin/ss
Jul1912:55:48nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/sys01.int/linux_mon_user;USER=root;COMMAND=/usr/bin/netstat-atnp
Jul1912:55:48nixmon1sudo:pam_unix(sudo:session):sessionopenedforuserrootby(uid=0)
Jul1912:55:48nixmon1sudo:pam_unix(sudo:session):sessionclosedforuserroot
Jul1912:55:48nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/sys01.int/linux_mon_user;USER=root;COMMAND=/usr/bin/ls-l/proc/1/exe
Jul1912:55:48nixmon1sudo:pam_unix(sudo:session):sessionopenedforuserrootby(uid=0)
Jul1912:55:48nixmon1sudo:pam_unix(sudo:session):sessionclosedforuserroot
Jul1912:55:49nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/sys01.int/linux_mon_user;USER=root;COMMAND=/usr/bin/ls-l/proc/946/exe
Jul1912:55:49nixmon1sudo:pam_unix(sudo:session):sessionopenedforuserrootby(uid=0)
Jul1912:55:49nixmon1sudo:pam_unix(sudo:session):sessionclosedforuserroot
Jul1912:55:49nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/sys01.int/linux_mon_user;USER=root;COMMAND=/usr/bin/ls-l/proc/1002/exe
Jul1912:55:49nixmon1sudo:pam_unix(sudo:session):sessionopenedforuserrootby(uid=0)
Jul1912:55:49nixmon1sudo:pam_unix(sudo:session):sessionclosedforuserroot
Jul1912:55:49nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/pic.int/linux_mon_user;USER=root;COMMAND=/usr/bin/ls-l/proc/1005/exe
Jul1912:55:49nixmon1sudo:pam_unix(sudo:session):sessionopenedforuserrootby(uid=0)
Jul1912:55:49nixmon1sudo:pam_unix(sudo:session):sessionclosedforuserroot
Jul1912:55:50nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/pic.int/linux_mon_user;USER=root;COMMAND=/usr/bin/ls-l/proc/1181/exe
Jul1912:55:50nixmon1sudo:pam_unix(sudo:session):sessionopenedforuserrootby(uid=0)
Jul1912:55:50nixmon1sudo:pam_unix(sudo:session):sessionclosedforuserroot
Jul1912:55:50nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/pic.int/linux_mon_user;USER=root;COMMAND=/usr/bin/ls-l/proc/1217/exe
Jul1912:55:50nixmon1sudo:pam_unix(sudo:session):sessionopenedforuserrootby(uid=0)
Jul1912:55:50nixmon1sudo:pam_unix(sudo:session):sessionclosedforuserroot
Jul1912:55:50nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/pic.int/linux_mon_user;USER=root;COMMAND=/usr/bin/ls-l/proc/1218/exe
Jul1912:55:50nixmon1sudo:pam_unix(sudo:session):sessionopenedforuserrootby(uid=0)
Jul1912:55:50nixmon1sudo:pam_unix(sudo:session):sessionclosedforuserroot
Jul1912:55:50nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/pic.int/linux_mon_user;USER=root;COMMAND=/usr/bin/ls-l/proc/1599/exe
Jul1912:55:50nixmon1sudo:pam_unix(sudo:session):sessionopenedforuserrootby(uid=0)
Jul1912:55:50nixmon1sudo:pam_unix(sudo:session):sessionclosedforuserroot
Jul1912:55:50nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/pic.int/linux_mon_user;USER=root;COMMAND=/usr/bin/ls-l/proc/12759/exe
Jul1912:55:50nixmon1sudo:pam_unix(sudo:session):sessionopenedforuserrootby(uid=0)
Jul1912:55:50nixmon1sudo:pam_unix(sudo:session):sessionclosedforuserroot
Jul1912:55:51nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/pic.int/linux_mon_user;USER=root;COMMAND=/usr/bin/ls-l/proc/28772/exe
Jul1912:55:51nixmon1sudo:pam_unix(sudo:session):sessionopenedforuserrootby(uid=0)
Jul1912:55:51nixmon1sudo:pam_unix(sudo:session):sessionclosedforuserroot
Jul1912:55:51nixmon1sudo:linux_mon_user:TTY=unknown;PWD=/d2/pic.int/linux_mon_user;USER=root;COMMAND=/usr/bin/ls-l/proc/132739/exe
Jul1912:55:51nixmon1sudo:pam_unix(sudo:session):sessionopenedforuserrootby(uid=0)
Jul1912:55:51nixmon1sudo:pam_unix(sudo:session):sessionclosedforuserroot
Jul1912:55:52nixmon1VGAuth[860]:pam_unix(vmtoolsd:auth):authenticationfailure;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:55:52nixmon1VGAuth[860]:pam_sss(vmtoolsd:auth):authenticationsuccess;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:55:52nixmon1VGAuth[860]:vmtoolsd:Usernameandpasswordsuccessfullyvalidatedfor'linux_mon_user'.
Jul1912:55:54nixmon1VGAuth[860]:pam_unix(vmtoolsd:auth):authenticationfailure;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:55:54nixmon1VGAuth[860]:pam_sss(vmtoolsd:auth):authenticationsuccess;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:55:54nixmon1VGAuth[860]:vmtoolsd:Usernameandpasswordsuccessfullyvalidatedfor'linux_mon_user'.
Jul1912:56:40nixmon1VGAuth[860]:pam_unix(vmtoolsd:auth):authenticationfailure;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:56:40nixmon1VGAuth[860]:pam_sss(vmtoolsd:auth):authenticationsuccess;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:56:41nixmon1VGAuth[860]:vmtoolsd:Usernameandpasswordsuccessfullyvalidatedfor'linux_mon_user'.
Jul1912:56:41nixmon1VGAuth[860]:pam_unix(vmtoolsd:auth):authenticationfailure;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:56:41nixmon1VGAuth[860]:pam_sss(vmtoolsd:auth):authenticationsuccess;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:56:41nixmon1VGAuth[860]:vmtoolsd:Usernameandpasswordsuccessfullyvalidatedfor'linux_mon_user'.
Jul1912:56:41nixmon1VGAuth[860]:pam_unix(vmtoolsd:auth):authenticationfailure;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:56:41nixmon1VGAuth[860]:pam_sss(vmtoolsd:auth):authenticationsuccess;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:56:41nixmon1VGAuth[860]:vmtoolsd:Usernameandpasswordsuccessfullyvalidatedfor'linux_mon_user'.
Jul1912:56:41nixmon1VGAuth[860]:pam_unix(vmtoolsd:auth):authenticationfailure;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:56:41nixmon1VGAuth[860]:pam_sss(vmtoolsd:auth):authenticationsuccess;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:56:41nixmon1VGAuth[860]:vmtoolsd:Usernameandpasswordsuccessfullyvalidatedfor'linux_mon_user'.
Jul1912:56:41nixmon1VGAuth[860]:pam_unix(vmtoolsd:auth):authenticationfailure;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:56:41nixmon1VGAuth[860]:pam_sss(vmtoolsd:auth):authenticationsuccess;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:56:41nixmon1VGAuth[860]:vmtoolsd:Usernameandpasswordsuccessfullyvalidatedfor'linux_mon_user'.
Jul1912:56:41nixmon1VGAuth[860]:pam_unix(vmtoolsd:auth):authenticationfailure;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:56:41nixmon1VGAuth[860]:pam_sss(vmtoolsd:auth):authenticationsuccess;logname=uid=0euid=0tty=ruser=rhost=user=linux_mon_user
Jul1912:56:41nixmon1VGAuth[860]:vmtoolsd:Usernameandpasswordsuccessfullyvalidatedfor'linux_mon_user'.
Jul1913:00:01nixmon1CRON[136971]:pam_unix(cron:session):sessionopenedforuserrootby(uid=0)
Jul1913:00:01nixmon1CRON[136971]:pam_unix(cron:session):sessionclosedforuserroot
Any advice on how to resolve from a OS perspective ?

Thanks
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments