14:25:59 $ $ SSH: Connecting from host [local-host] 14:25:59 SSH: Connecting with configuration [remoteuser@remoteserver] ... 14:25:59 SSH: Creating session: username [cfessat1], hostname [remoteserver], port [22] 14:25:59 SSH: Connecting session ...14:26:00 ERROR: Exception when publishing, exception message [Failed to connect session for config [remoteuser@remoteserver]. Message [Auth fail]] 14:26:00 Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
Failed to connect or change directory
jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [cfessat1@cfesstbos1]. Message [Auth fail]
localserver:localuser[]ssh -l remoteuser remoteserver**************************************************************** Unauthorized access to or use of this system is prohibited. ** All access and use may be monitored and recorded. ****************************************************************Password:Last login: Sun Jun 5 14:17:43 2011 from localserverSun Microsystems Inc. SunOS 5.10 Generic January 2005remoteserver:remoteuser[]
> I'm trying to user the "Send files or execute commands over SSH" plugin in
> order to execute some shell scripts on a solaris server, but I keep
> receiving the following error when testing my setup or using the plugin in a
> job:
>
> *14:25:59* $ $ SSH: Connecting from host [local-host]*14:25:59*
> SSH: Connecting with configuration [remoteuser@remoteserver]
> ...*14:25:59* SSH: Creating session: username [cfessat1], hostname
> [remoteserver], port [22]*14:25:59* SSH: Connecting session ...
>
> *14:26:00* ERROR: Exception when publishing, exception message
> [Failed to connect session for config [remoteuser@remoteserver].
> Message [Auth fail]]*14:26:00* Build step 'Send files or execute
> commands over SSH' changed build result to UNSTABLE
>
> Here's what I've done:
>
> 1. Navigated to http://.../jenkins/configure
> 2. Scrolled down to the SSH configuration section.
> 3. Set the following values:
> 1. Passphrase: <empty>
> 2. Path to key: <empty>
> 3. Key: <empty>
> 4. Disable exec: unchecked
> 4. Clicked Add
> 5. Set the following values under the added server:
> 1. Name: remoteuser@remoteserver
> 2. Hostname: remoteserver
> 3. Username: remoteuser
> 4. Remote Directory: <empty>
> 6. Clicked Advanced
> 7. Checked "Use password authentication..." on
> 8. Set the following advanced values:
> 1. Passphrase/Password: <the password for remoteuser>
> 2. Path to key: <empty>
> 3. Key: <empty>
> 4. Port: 22
> 5. Timeout: 300000
> 6. Disable exec: <unchecked>
>
>
> I click "Test Configuration" and get:
>
> Failed to connect or change directory
>
> jenkins.plugins.publish_over.BapPublisherException: Failed to
> connect session for config [cfessat1@cfesstbos1]. Message [Auth fail]
>
> I am able to connect to the above server via putty:
>
> localserver:localuser[]ssh -l remoteuser remoteserver
>
> ***************************************************************
>
> * Unauthorized access to or use of this system is prohibited. *
>
> * All access and use may be monitored and recorded. *
>
> ***************************************************************
>
> Password:
>
> Last login: Sun Jun 5 14:17:43 2011 from localserver
>
> Sun Microsystems Inc. SunOS 5.10 Generic January 2005
>
> remoteserver:remoteuser[]
>
> Am I doing something wrong?
>
>
Hi Leo,
No, you are doing everything right!
I executed a major refactor of the views in the last release, and have
introduced a bug where the overriden password/passphrase is not picked
up.
I should have a new release in the next few hours. You will need to
configure the password again (everything else will be fine) after
upgrading the plugin.
Many appologies,
Bap.
>
>
>
>
ERROR: Exception when publishing, exception message [Could not create a date format from [/var/www/html/jenkins/] exception message [Illegal pattern character 'v']]
How to solve this error in jenkins.