Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

gbw

Posts

36

Joined

Mon Oct 06, 2008 7:14 pm

SSHFTP: hashed hostnames are not returned

by gbw » Fri Aug 13, 2010 1:30 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: SSHFTP: hashed hostnames are not returned

by support2 » Sat Aug 14, 2010 8:02 am

The reason why they aren't returned in getKnownHostnames() is because we don't know what they are - they are hashed, and the hostnames can't be extracted. Hashed hostnames were introduced in SSH to make the known_hosts file more secure.

We've modified public SSHFTPPublicKey[] getKnownHostKeys(String hostname) to work for hashed hostnames as well as non-hashed ones. The hostname can be passed in and will return the keys if they exist.

Who is online

Users browsing this forum: No registered users and 103 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign