Re: How to set ssh key exchange algorithm when using Publish Over SSH plugin?

2023-06-01 Thread Alex Earl
You are correct, the plugin does not use either config file (or any config
file for that matter). It looks like Jsch (the SSH library used) does not
support ssh-rsa anymore. You would need to setup one of the other host key
types (ssh-ed25519 would probably be best) on the server.

On Thu, Jun 1, 2023 at 10:12 AM zil...@gmail.com  wrote:

> I'm using the Publish Over SSH
>  plugin t6o upload files to
> our SFTP site. I'm getting this error
>
> ERROR: Exception when publishing, exception message [Failed to connect and
> initialize SSH connection. Message: [Failed to connect session for config [
> ftp.company.com]. Message [Algorithm negotiation fail:
> algorithmName="server_host_key"
> jschProposal="ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256"
> serverProposal="ssh-rsa"]]]
>
>
> In spite of me having this in C:\Users\myUser\.ssh\config
> and in C:\Windows\system32\...\.ssh\config
>
> Host ftp.company.com
> User myUser
> HostName ftp.company.com
> HostKeyAlgorithms=+ssh-rsa
>
> One explanation is the plugin doesn't use either config file. What am I
> missing? TIA
>
> Chris
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/bb93300f-68ee-46e9-9ae7-f4ed7ec12306n%40googlegroups.com
> 
> .
>


-- 
Website: http://earl-of-code.com

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVd7WaNPWRZxw%3DDWHwTfGL0764FHOjiXYnmU%3DLzLYf67AQ%40mail.gmail.com.


How to set ssh key exchange algorithm when using Publish Over SSH plugin?

2023-06-01 Thread zil...@gmail.com
I'm using the Publish Over SSH 
 plugin t6o upload files to 
our SFTP site. I'm getting this error

ERROR: Exception when publishing, exception message [Failed to connect and 
initialize SSH connection. Message: [Failed to connect session for config 
[ftp.company.com]. Message [Algorithm negotiation fail: 
algorithmName="server_host_key" 
jschProposal="ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256"
 
serverProposal="ssh-rsa"]]]


In spite of me having this in C:\Users\myUser\.ssh\config
and in C:\Windows\system32\...\.ssh\config

Host ftp.company.com
User myUser
HostName ftp.company.com
HostKeyAlgorithms=+ssh-rsa

One explanation is the plugin doesn't use either config file. What am I 
missing? TIA

Chris 

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bb93300f-68ee-46e9-9ae7-f4ed7ec12306n%40googlegroups.com.