You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Z W <mp...@gmail.com> on 2008/01/16 00:45:08 UTC
java.net.UnknownHostException with sshexec
Hi
I have
a_hostname=host6
b_hostname=host10
<ac:for list="${a_hostname}, ${b_hostname}" param="host">
<ac:sequential>
<sshexec host="@{host}"
username="${a_username}"
password="${a_password}"
outputproperty="output_property"
command="cd ${build.directory}; ls"
trust="true"
failonerror="true"/>
:
:
Output
[sshexec] Connecting to host10:22
[ant] Exiting build_main.xml.
build_main.xml:251: com.jcraft.jsch.JSchException:
java.net.UnknownHostException:
host10
at org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute(
SSHExec.ja
va:209)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
:
:
when I can reach the hosts
Probing host host6
Host address = 10.1.6.206
host is reachable
Probing host host10
Host address = 10.1.6.210
host is reachable
with IsReachable task
Can a hero work with me to troubleshoot this ? I don't know why it won't
connect to host10.
I tried independently on MS Powershell, it can be logged into.
Any help is appreciated
RE: java.net.UnknownHostException with sshexec
Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
It looks like it cannot resolve the host address. Try using the ip
address instead.
-Rob Anderson
-----Original Message-----
From: Z W [mailto:mpc8250@gmail.com]
Sent: Tuesday, January 15, 2008 3:45 PM
To: Ant Users List
Subject: java.net.UnknownHostException with sshexec
Hi
I have
a_hostname=host6
b_hostname=host10
<ac:for list="${a_hostname}, ${b_hostname}" param="host">
<ac:sequential>
<sshexec host="@{host}"
username="${a_username}"
password="${a_password}"
outputproperty="output_property"
command="cd ${build.directory}; ls"
trust="true"
failonerror="true"/>
:
:
Output
[sshexec] Connecting to host10:22
[ant] Exiting build_main.xml.
build_main.xml:251: com.jcraft.jsch.JSchException:
java.net.UnknownHostException:
host10
at org.apache.tools.ant.taskdefs.optional.ssh.SSHExec.execute(
SSHExec.ja
va:209)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java
:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
:
:
when I can reach the hosts
Probing host host6
Host address = 10.1.6.206
host is reachable
Probing host host10
Host address = 10.1.6.210
host is reachable
with IsReachable task
Can a hero work with me to troubleshoot this ? I don't know why it won't
connect to host10.
I tried independently on MS Powershell, it can be logged into.
Any help is appreciated
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org