SSH connect Scope error: "No suitable authentication method found"

I tried different configurations, but can’t make it work. I just need to login, run 2 linux commands and save the result in a text file

SSH Connect Scope: No suitable authentication method found to complete authentication (publickey,keyboard-interactive,hostbased).

Hi Manuel. It sounds like you are not using the proper authentication method for connecting to the SSH server. How are you doing it manually? If doing it manually, regardless of you providing username and password upfront in the connection string or putty you are always asked for the Password in the shell prompt, they you might have to enable Interactive Keyboard Authentication. Depending on the Password prompt you get when you perform this manually, you might also need to edit the Expected Password Prompt setting from the respective config section of the activity.

You can read a bit about the difference between standard user-password authentication and interactive keyboard auth. here: authentication - ssh -o PreferredAuthentications: What's the difference between "password" and "keyboard-interactive"? - Super User

There are really too many SSH connection methods possible to possibly include all of them in the SSH package I published in the marketplace. However, I tried to include the most common ones, leaving the option to programmatically perform the connection in case none fits.

So if the Interactive Keyboard Auth. still doesn’t work for you, I would suggest trying to look into the code, debug and implement one of your server’s supported versions of connection. The underlying library I’m using is Renci SSH.NET, pretty well known and with lots of examples available online. You can explore the source code of the activities here: GitHub - sorincalin/UiPathTeam.SSHConnector.Activities: Custom UiPath Activities that allow for creation of an SSH connection and running commands inside it.

1 Like