RE: sshtools writes a different public key into known_hosts
"Tilman Sporkert" <[email protected]>
| Newsgroups | gmane.comp.java.sshtools.user |
|---|---|
| Message-ID | <003301c669b8$d8de63f0$0a01a8c0@office> |
The key in question here is the public key of the server that you connect to. It is used to verify that the server that you connected to is really the server that you meant to connect to, and not some "impersonator". As such, this is not a key that you generate, but one that was generated when SSH was first set up on the server. In a secure environment, you would obtain the public key of the server from a trusted source ahead of time, and save it. You would never answer the prompt with "Yes" or "Always" because that totally defeats the whole procedure. Tilman -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Soumya Sent: Wednesday, April 26, 2006 1:09 AM To: [email protected] Subject: [Sshtools-users] sshtools writes a different public key into known_hosts Hi, When I connect to my secure server (for secure ftp) using the sshtools API I get the prompt - "Do you want to allow this host key? [Yes|No|Always]:" When I enter 'Always', the known_hosts file is created as expected, but the public key written in to it looks much different from the one I have appended to authorized_keys on my server. Why is this ? The problem I have with this behaviour is that, in order to avoid the prompt, I append the public key (I generated with sshtools key-gen) to known_hosts myself and it doesn't work. could anyone give a clue regarding this ? thanks in advance, Soumya. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sshtools-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sshtools-users ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642