When we try to run a simple script using Run SSH command with password based authentication, it fails with 'Unable to connect to the remote SSH host' error.

Document ID : KB000033289
Last Modified Date : 14/02/2018
Show Technical Document Details

                         Question:

                    When we try to run a simple script using Run SSH command with password based authentication it keeps failing with following error:

                    Unable to connect to the remote SSH host.class com.sshtools.j2ssh.transport.kex.KeyExchangeException No suitable key

                    exchange algorithm could be agreed.

                    We have verified the SSH connectivity through PUTTY client using same login details.

                    Answer:

                    The error message clearly states that key based authentication is  failing and there  is no reference to password authentication which is due to

                    the fact  that key based authentication will be the default authentication on *NIX hosts.

                    In order to enable to password based authentication please make sure 'PasswordAuthentication' is set to yes' in '/etc/ssh/sshd.conf'.

                 

                    Note: For information on setting the user command prompt in the "Run SSH Command" operator please refer below technical document

                    http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec1371754.aspx?intcmp=searchresultclick&resultnum=2