Symptom
Running a MettleCI CLI command (typically on a Windows client) which attempts to connect to a DataStage Engine tier produces an error of the following form:
Code Block |
---|
Failed to connect to host net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods at net.schmizz.sshj.SSHClient.auth(SourceFile:230) at net.schmizz.sshj.SSHClient.authPublickey(SourceFile:345) at net.schmizz.sshj.SSHClient.authPublickey(SourceFile:363) at com.datamigrators.mettle.sftp.commands.BaseRemoteCommand.execute(SourceFile:72) at com.datamigrators.mettle.shell.Shell.executeCommand(Shell.java:183) at com.datamigrators.mettle.shell.Shell.run(Shell.java:48) at com.datamigrators.mettle.shell.MainClass.main(MainClass.java:174) Command failed. |
Cause
You don’t have the correct files and/or permissions in place for correct SSH operation.
Solution
See the guidance on SSH configuration on this page.