I am not able to add Server monitor with SSH key generated with passphrase and steps to generate SSH2 keys without passphrase.

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 WITHOUT a Key passphrase and save it.
  • In Puttygen use the Conversions -> Export OpenSSH key option to create the correct format Private Key and save under a different file name.
  • Log onto the Sun Server and navigate to your home directory.
  • Edit the /home/yourusername/.ssh/authorized_keys file and paste in the text from the Puttygen Public key for pasting into OpenSSH authorized_keys file text box.
  • Open the file generated in the second step in a text editor and paste into the Private Key Edit Box in Applications Manager.

If users generate keys with key passphrases then they will receive the following error:

Authentication failed. Kindly verify the username and password provided.
Check whether the PasswordAuthentication is set as yes in /etc/ssh/sshd_config file.Kindly set it as yes and restart the SSH daemon

Sample Key Format:

With Passphrase – WON’T WORK

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,288E9F707C47086E
9+SMwolsFe9UY7xXXGUpb+SgnyEYl0eAoBgEIJYIlWvUstIdN28Ai/lzqhZJUAp/
xLNDYk80RL5JLwzjH4iSQp2JM6UUithNX6byDOLCphcBfx/88eWt0NAv2Z8e82iM
oou3BFkj/1Jgdiq9aZLbc8EiWoN787OII8G/yU6lFOQCYryKwkV1uBIJZNV0PIvx
XtDw+XEi1l4Nk9wlAv1Amg2Hrsq5E5Q9bi5Cv1R/GmOhtkN+22d50ugo7q73fmGj
OJdpXD8dllvkyl3yH7AOWMm/cOxU5fDPmmg9JtZLdx/A1I2gfmDuUEe7wany9hS5
DnkFNBWe6XWfjpVN37bGZ4Ihh2RIg83nwz4+ivz3TRJZcNudku3LT3kbZbvSdex9
wAkrv3+YoRzF504Vcs37+5ldF4LO4nU6oSAylRGSHk8pRObjhnL4uWlNWNGWlirY
ZLhuptcfeGVAR8Cazg+W4ZLosawMTVt2dupVXzop4JSCL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WbnGhb8ITN9RobOAmXzaYzY69z
PblmKx/zBmFbO/2VCwJBAKjc3Decx2jtgAr0X94txc2uOkUjLUCp/RyraWDgVZUS
+Z6Sl4wAK4GB6+GADMwt7PEv4rcFO0KOjGJw4ZO9TkA=
-----END RSA PRIVATE KEY-----


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.

2) Send us copy of /etc/ssh/sshd_config file (or /etc/sshd_config file) 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 & SSH KEY using any other SSL client tool other than Applications Manager.

                  New to ADSelfService Plus?

                    • Related Articles

                    • How can I generate SSH key for public key based authentication in server monitors?

                      To monitor a Unix server via Public Key Authentication in SSH mode, you need to generate a set of RSA or DSA key pairs. To generate RSA or DSA SSH key pairs: For windows, you can use a free tool like PuTTYgen. For Linux, you can use ssh-keygen ...
                    • IIS Server monitor - Troubleshooting steps

                      Unable to add IIS Server monitor Follow the below given below to add an IIS server monitor in Applications Manager: First, check whether all the prerequisites are done. Check the IIS Server URL is accessible from Applications Manager server. If your ...
                    • Self monitor Applications Manager using Real User Monitoring

                      We can monitor the Applications Manager using Real User Monitoring with a Java Script injection and this can be used to measure the Applications Manager's performance continuously. All you need is to install and setup the Real User Monitoring (RUM) ...
                    • Real User Monitor (RUM) - Troubleshooting

                      If the monitor has not polled data for a long time, follow the steps below for troubleshooting: Step 1: Check prerequisites to be done Real User Monitor requires the RUM Agent to be installed and mapped to the Applications Manager. Refer the help ...
                    • 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 ...