Josh,
I am trying to do an SFTP step using the extension above. I am trying to authenticate with a public key and in ITR I am getting the exception below.
I had generated the SSH keys using PuttyGen. I realized that probably the error is thrown because Lisa might be expecting an Open SSH private key and got the PPK converted to OpenSSH. I am still receiving the same exception.
If I use the SSH keys on WINSCP, they work perfectly fine and I am able to connect to the target machine.Any troubleshooting steps would help.
============================================================================
| Exception:
============================================================================
| Message: Publickey authentication failed.
----------------------------------------------------------------------------
| Trapped Exception: Publickey authentication failed.
| Trapped Message: java.io.IOException: Publickey authentication failed.
----------------------------------------------------------------------------
STACK TRACE
java.io.IOException: Publickey authentication failed.
at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:262)
at com.trilead.ssh2.Connection.authenticateWithPublicKey(Connection.java:443)
at com.itko.lisa.ext.trilead.TrileadConnectionFactory.checkAuth(TrileadConnectionFactory.java:199)
at com.itko.lisa.ext.trilead.TrileadConnectionFactory.createNewConnection(TrileadConnectionFactory.java:165)
at com.itko.lisa.ext.trilead.TrileadConnectionFactory.makeObject(TrileadConnectionFactory.java:276)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)
at com.itko.lisa.ext.trilead.TrileadConnectionFactory.getConnection(TrileadConnectionFactory.java:97)
at com.itko.lisa.ext.trilead.SFTPEngine.execute(SFTPEngine.java:55)
at com.itko.lisa.ext.trilead.SFTPStep.execute(SFTPStep.java:92)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1295)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1210)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1195)
at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1057)
at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:70)
at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:964)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Invalid PEM structure, '-----BEGIN...' missing
at com.trilead.ssh2.crypto.PEMDecoder.parsePEM(PEMDecoder.java:138)
at com.trilead.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:313)
at com.trilead.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:171)
... 17 more
Thank You,
Arun