JSchException: UnknownHostKey
Brought to you by:
vladimir_silva
Hello, your application would be quite useful to me,
but I cannot use it for SFTP. I get the following
exception:
com.jcraft.jsch.JSchException: UnknownHostKey: [myhost]
I think it's because I don't have myhost host in my SSH
known_host, but where is your software pointing for
that file, and how do I manually add my host to that file?
Thanks.
Logged In: NO
Hi,
My guess is that the VFS layer reads $HOME/.ssh/known_hosts
I got this error when accesing a public SFTP server from
Win32. It does work from Linux against an internal server
though.
I'll see what can I do.
Regards,
V.
Logged In: NO
Hi,
You need to add the server host key to your Win32 client %
USERPROFILE%\.ssh\known_hosts file
Create the file on the win32 client and copy the host key
from the server. Here is an example of mine known_hosts
ebony,1.xx.yy.zz ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEA0V0uRyBZ7OOCZcW64EeDEJ1GW
agYStTD2lB5g5eWTz8fbOgqkeodsxiFqHgTpPwRSrr4yaVKufyaJQVX/vBF
RSnEUD5Z7JbrGGdlkPbey
FO7qlrC7ciLPp5Yhmd3sfKZmg4G3k0ypANBulujzVlMVsVgo4NHOgMPhcvJ
dzIA6iE=
This happens on Win32 only.
Logged In: NO
I'm also having this problem although i am using linux and i have the host key in .ssh/know_hosts