A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
Java in General
The host is unknown to the system
Joined: Apr 04, 2009
Aug 03, 2010 03:20:09
Hello. I try to connect to a host by using
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
Joined: Sep 16, 2008
Aug 03, 2010 04:35:13
I'm not sure if it applyes here, but you can imprt root certificates with keys in you JRE keystore or specify which keystore you're program will use. Try exploring
SCJP 6, OCMJD 6, OCPJWSD 6
I no good English.
Joined: Oct 27, 2005
Aug 03, 2010 14:31:22
Check out the HostKeyVerification interface and its implementing classes.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: The host is unknown to the system
Removing Eclipse Ganymede
IP Address as a hostname string !
Not able to telnet to 9922 port
connect remotely to database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015