Re: [JSch-users] Newbie Question - jsch & F-Secure
Status: Alpha
Brought to you by:
ymnk
From: Joan L. <jo...@li...> - 2004-06-23 07:08:49
|
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El Mi=C3=A9rcoles, 23 de Junio de 2004 00:36, Atsuhiko Yamanaka escribi=C3= =B3: > Hi, > > +-From: gle...@ba... -- > > |_Date: Tue, 22 Jun 2004 17:26:35 -0500 __ > | > |I have been attempting to implement jsch-0.1.15 with public key > |authentication with a server running F-Secure's ssh daemon version > |3.2.3. In attempting to run the UserAuthPubKey class after > |generating a dsa key I get a jsch exception with the message "Auth > |Fail." > | > |I have copied my public key down to the server. I put the key name > |in the "authorization" file (which is what F-Secure wants for it's > |own clients to connect) and created an authorized_keys file when > |that failed. All of the files are readable only by my ID. > > I'm sorry, but I don't have F-Secure's programs and I can not > try public key authentication for F-Secure's sshd. > How about the format of public and private keys? > JSch has adopted OpenSSH's format and I have heard that > it is incompatible with F-Secure's one. Yes, thats true. OpenSSH doesn't use the 'SECSH Public Key File Format' so = you=20 have to convert to it. I don't have F-Secure neither but you can try to generate the key as follow= s: ssh-keygen -b 1024 -t dsa key (as usual) and later convert the key: ssh-keygen -e key.pub > key.secsh This is the one you have to put in your server's authorization file. You also can import a key from SECSH to OpenSSH using the -i switch in=20 ssh-keygen. Hope this helps. =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA2SzKfSvGECyN7vcRAh63AJ9fiZmJVulfxbN193hLLQVvTe69egCfb9Px /6S2XDbbgwxS29k5t5EsYdI=3D =3D8q/P =2D----END PGP SIGNATURE----- |