SSH Plugin - "Cannot Connect to server" but credentials are correct.

1,871 views
Skip to first unread message

Tim Myerscough

unread,
Jul 20, 2014, 10:33:22 PM7/20/14
to jenkins...@googlegroups.com
Hi,

I'm trying to connect to a Mac from a Jenkins 1.558 instance running on Windows 7 using the SSH plugin.

I am getting the following log messages:
Jul 21, 2014 10:21:39 AM org.jvnet.hudson.plugins.SSHBuildWrapper$DescriptorImpl doLoginCheck
SEVERE: Auth fail
Jul 21, 2014 10:21:39 AM org.jvnet.hudson.plugins.SSHBuildWrapper$DescriptorImpl doLoginCheck
SEVERE: Can't connect to server

The server hostname/username/password are configured correctly. I have verified connection from a command line SSH using PUTTY on the Jenkins machine as well as an alternate machine using username/password authentication.

On the remote machine, I receive the following error message:
Jul 21 10:31:49 XXXX sshd[36671]: error: Received disconnect from XX.XX.XX.XX: 3: com.jcraft.jsch.JSchException: Auth fail [preauth]

How can I investigate this further?

Thanks

Tim

Tim Myerscough

unread,
Jul 20, 2014, 10:58:50 PM7/20/14
to jenkins...@googlegroups.com
I've found a solution by configuring an SSH Keyfile.

Has anyone else experienced issues with username/password authentication issues with the SSH Plugin?

Stephen Connolly

unread,
Jul 21, 2014, 3:51:04 AM7/21/14
to jenkins...@googlegroups.com
Does the password contain any non-ASCII (i.e. outside the range 32-127) characters?


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tim Myerscough

unread,
Jul 21, 2014, 4:23:24 AM7/21/14
to jenkins...@googlegroups.com
No, all characters are within the ASCII range.


--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/8ecvILl7LnM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Tim Myerscough || Senior Consultant
Permeance Technologies


Postal: PO BOX 5707, St Georges Tce, WA 6831, AUSTRALIA; 
Locations: Sydney - Melbourne - Perth

Stephen Connolly

unread,
Jul 21, 2014, 5:10:19 AM7/21/14
to jenkins...@googlegroups.com
Unless the server key is larger than 2048 bits... that could cause issues if you don't have unlimited strength JCA installed... but I have not spent much time looking at the JSch based SSH connectors
Reply all
Reply to author
Forward
0 new messages