I cannot add remote server monitor using SSH password authentication.

I cannot add remote server monitor using SSH password authentication.

Please follow our suggestions below,

1) When adding that server monitor , please specify the correct command prompt value, which is the last character in your command prompt after connecting to that server with that appropriate username

Connect to the remote Linux/Freebsd/Mac OS/HP UX/Solaris server and check the command prompt. Default value is $ and possible values are > or # etc

2) In the server which you are trying to monitor through SSH, the PasswordAuthentication variable should be set as 'yes' in the sshd_config file and it should be uncommented

To ensure this, access the file /etc/ssh/sshd_config (or /etc/sshd_config file) and verify the value of PasswordAuthentication variable. If it is set as 'no', modify it to 'yes' , uncomment that line and restart the SSH daemon using the command /etc/rc.d/sshd restart

3) Applications Manager can not add the server monitor (even though SSH2 is running) if the entry in </etc/ssh/sshd_config> (or /etc/sshd_config file)  is  'Protocol 2,1'

Change the entry as below in the /etc/ssh/sshd_config file (or /etc/sshd_config file), uncomment that line and then restart SSH2 daemon

protocol 2

4) Add the below lines in the /etc/ssh/sshd_config file (or /etc/sshd_config file) in the remote server which are trying to add in Applications Manager and restart the SSH Daemon using the command /etc/rc.d/sshd restart (comment the lines if they are already present)


#Default Encryption algorithms and Message Authentication codes
#Ciphers    aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc
#MACS    hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96

Note:You have to take backup of original file before modification

If you still have issues send below information to appmanager-support@manageengine.com for further troubleshooting

1) Send us complete output for the AppManagerHome\bin\ServerSSHTroubleshoot.bat or ServerSSHTroubleshoot.sh script with remote server hostname or ipaddress. Follow the below link for usage of the command

https://desk.zoho.com/portal/manageengine/kb/articles/how-to-execute-serversshtroubleshoot-bat-or-sh-file-7-7-2017

2) Send us copy of /etc/ssh/sshd_config file (or /etc/sshd_config) from the remote server which are trying to add in Applications Manager via SSH

3) Open command prompt in remote server that you are trying to monitor in Applications Manager with SSH

uname -a

/sbin/ifconfig -a

dladm show-link

hostname

4) Open command prompt in Applications Manager host and execute below command with remote server hostname or ipaddress and send us the screenshot of the output

telnet <hostname> <ssh_port>

Example:

telnet app-centos 22

5) Open command prompt in Applications Manager host and execute below commands with remote server hostname and ipaddress and send us the screenshot of the output

ping hostname

nslookup hostname

ping ipaddress

nslookup ipaddress

6) Try to add the server monitor in Applications Manager a couple of times and then immediately create a new support information file and upload it to our ftp.Refer the below link for steps to create support information file and uploading it.

https://desk.zoho.com/portal/manageengine/kb/articles/where-do-i-find-the-log-files-that-i-need-to-send-to-technical-support-team-for-analysis

7) Check if you are able to connect with the same username & password using any other SSH client tool other than Applications Manager.


          • Related Articles

          • How can I generate SSH key for public key based authentication in Server monitor ?

            Please use two similar servers for this procedure. 1. A RSA or DSA key pair must be generated on the client system (SERVER1). Use the steps below to generate and use SSH2 keys. Login as the user for monitoring and go to the /home/username/.ssh/ ...
          • Troubleshooting URL Monitor

            Here are few of the common errors you may come across in URL monitor, we have mentioned the steps you can follow to troubleshoot them.   General troubleshooting for URL monitor Ensure that the URL is accessible from the server in which Applications ...
          • I am not able to add Server monitor with SSH key generated with passphrase and steps to generate SSH2 keys without passphrase.

            As of now we do not support usage of SSH2 keys generated with passphrase in Applications Manager. However you can use a key generated without passphrase. Use the steps below to generate and use SSH2 keys. Using Puttygen generate a new private key ...
          • Issues in creating server monitor

            Please do test credentials before adding a particular monitor. Troubleshooting the SSH Configuration :  I cannot add remote server monitor using SSH password authentication Please follow our suggestions below, 1) When adding that server monitor, ...
          • Troubleshooting Authentication Failed error

            Authentication Failure Authentication failure occurs when the request to a resource is missing or has invalid credentials.  Check if URL requires authentication Access the URL in an incognito/private window and check if any pop up asking for ...