Dd you try to run the command from the Jenkins server as the Jenkins user like 
this:

ssh HOST "command_that_should_work"

-- Sami

jason.l...@sas.com kirjoitti 7.2.2012 kello 21.44:

> Hello,
> 
> I am having difficulty running the exec command in the SSH publisher
> plug-in.  I am able to successfully copy the source files of the build
> in the transfer set but the exec command fails.  Here is the snippet
> from the log.
> 
> SSH: Connecting from host [foo]
> SSH: Connecting with configuration [bar] ...
> SSH: EXEC: STDOUT/STDERR from command [test] ...
> SSH: Disconnecting configuration [bar] ...
> ERROR: Exception when publishing, exception message [Failed to connect
> exec channel. Message [session is down]]
> 
> I can run the same command verbatim as what I have in the exec command
> field successfully using SSH outside of Jenkins.
> 
> Has anyone else hit this?
> 
> Thanks, -Jason

Reply via email to