Configure tSSH using authentication method as Public key
Hi All, I am trying to connect to secure shell server using tSSH component with authentication method as Public Key. Need help in configuring value for below two fields: 1) Pass Phrase 2) Private key Below is error i am getting: Starting job temp1 at 12:40 26/12/2016. connecting to socket on port 3422 connected Exception in component tSSH_1 java.io.IOException: Publickey authentication failed. at ch.ethz.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:281) at ch.ethz.ssh2.Connection.authenticateWithPublicKey(Connection.java:459) at ch.ethz.ssh2.Connection.authenticateWithPublicKey(Connection.java:510) at ideation.temp1_0_1.temp1.tSSH_1Process(temp1.java:335) at ideation.temp1_0_1.temp1.runJobInTOS(temp1.java:648) at ideation.temp1_0_1.temp1.main(temp1.java:505) Caused by: java.io.IOException: Invalid PEM structure, '-----BEGIN...' missing at ch.ethz.ssh2.crypto.PEMDecoder.parsePEM(PEMDecoder.java:141) at ch.ethz.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:321) at ch.ethz.ssh2.auth.AuthenticationManager.authenticatePublicKey(AuthenticationManager.java:190) ... 5 more disconnected Job temp1 ended at 12:40 26/12/2016.
Attached is screen shot of component current cofiguration.
Re: [resolved] Configure tSSH using authentication method as Public key
Hi xdshi, I'm also trying the same and getting the below exception, : z_tdmig_dev.shell_copy_0_1.Shell_Copy - tSSH_1 - Connection attempt to 'XXXDBDA03' on the port '22' as 'ramakrn'. : z_tdmig_dev.shell_copy_0_1.Shell_Copy - tSSH_1 - Authentication using a public key. : z_tdmig_dev.shell_copy_0_1.Shell_Copy - tSSH_1 /home1/ramakrn/.ssh/id_rsa (No such file or directory) disconnected Exception in component tSSH_1 java.io.FileNotFoundException: /home1/ramakrn/.ssh/id_rsa (No such file or directory). I have created the key file seeing the link below by logging into ramakrn user, https://www.linode.com/docs/security/use-public-key-authentication-with-ssh I have given "/home1/ramakrn/.ssh/id_rsa" in Private key field. Kindly help.