java.net.UnknownHostException

"Mustafa Cayci" <[email protected]>
Newsgroups gmane.comp.java.sshtools.user
Message-ID <[email protected]>
Hi,

I downloaded the latest J2SSH API and wrote a simple Java application that
connects to two different servers and retrieve files under a given directory
path and ftp the file list.  When I run this utility in one set of servers,
it works fine.  But when I run the same utility in other set of servers, I
am getting the following error

INFO: Loading message authentication methods
java.net.UnknownHostException: rosidentapps2
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
        at java.net.Socket.connect(Socket.java:507)
        at java.net.Socket.connect(Socket.java:457)
        at java.net.Socket.<init>(Socket.java:365)
        at java.net.Socket.<init>(Socket.java:178)
        at com.sshtools.j2ssh.net.SocketTransportProvider.<init>(
SocketTransportProvider.java:51)
        at
com.sshtools.j2ssh.net.TransportProviderFactory.connectTransportProvider(
TransportProviderFactory.java:79)
        at com.sshtools.j2ssh.SshClient.connect(SshClient.java:774)
        at gov.dhs.visit.om.filediff.FileDiff.main(FileDiff.java:74)

I was able to ping the server in question "rosidentapps2" from the command
line.

Also when I look at the FileDiff.java:74.

I see the following code segment

ssh.connect(properties, new IgnoreHostKeyVerification());

Does that mean this particular server "rosidentapps2" somehow has been setup
differently than the other two servers?  If so, what is different?  What
should I be looking?

Thanks in advance,

Mustafa

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Sshtools-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sshtools-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.