Re: java.net.UnknownHostException
"Mustafa Cayci" <[email protected]>
| Newsgroups | gmane.comp.java.sshtools.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I am setting
properties.setPrefPublicKey("ssh-dss");
I wonder that is the problem.
Mustafa
On 12/26/06, Mustafa Cayci <[email protected]> wrote:
>
> Hi Brock,
>
> Yes it does. Yes I tried that too. But it did not make any different.
>
> Mustafa
>
> On 12/26/06, Brock Noland < [email protected]> wrote:
> >
> > Does the server had a fully quailified name?
> > rosidentapps2.somedomain.nl? If so, have you tried that?
> >
> > Brock
> >
> > On 12/26/06, Mustafa Cayci <[email protected]> wrote:
> > > 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
> > >
> > >
> > >
> >
>
>
-------------------------------------------------------------------------
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