posted 15 years ago Hello. I try to connect to a host by using
com.sshtools.j2ssh
When i connect ssh.connect(hostname,portname)
i see in system.out log these messages;
The host key fingerprint is: 1024: XX XX XX XX XX XX XX XX XX X XX XX XX XX XX XX
Do you want to allow this host key? [Yes|No|Always]:
com.sshtools.j2ssh.transport.TransportProtocolClient verifyHostKey The host key was not accepted
I want to accept this key but i am not able to. Is there a method for accepting this key?
I searched for known_hosts file and adding this host key can fix my problem.
How do i add this key?
What is the format for adding the key manually?
must the line be like this?
hostname 1024: XX XX XX XX XX XX XX XX XX X XX XX XX XX XX XX
Thanks