sodiska saw
2014-12-18 11:33:23 UTC
Hi,
I have downloaded Jsch version 1.51 and started to using it to connect a remote server using private key which has passphrase. Funny thing is when I use the private key and with the passphrase via a Terminal, it works fine, but when I use a JAVA app that I wrote, it keep asking me to key in passphrase for 3 times, and then reply error message: Auth Fail.
I am pretty sure the private key and the passphrase is correct since I have tested it in a terminal. Anyone has the same experience?
I have downloaded Jsch version 1.51 and started to using it to connect a remote server using private key which has passphrase. Funny thing is when I use the private key and with the passphrase via a Terminal, it works fine, but when I use a JAVA app that I wrote, it keep asking me to key in passphrase for 3 times, and then reply error message: Auth Fail.
I am pretty sure the private key and the passphrase is correct since I have tested it in a terminal. Anyone has the same experience?