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 [email protected] <[email protected]> wrote: > I'm using the Publish Over SSH > <https://plugins.jenkins.io/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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/bb93300f-68ee-46e9-9ae7-f4ed7ec12306n%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/bb93300f-68ee-46e9-9ae7-f4ed7ec12306n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVd7WaNPWRZxw%3DDWHwTfGL0764FHOjiXYnmU%3DLzLYf67AQ%40mail.gmail.com.
