title: Jenkins SSH server showing error Algorithm negotiation fail while trying to setup with over the SSH plugin
body: <p>Jenkins SSH server showing mentioned error <strong>Algorithm negotiation fail</strong> while trying to set up with <strong>over the SSH plugin</strong> when trying to connect over ssh to a local server (Linux Container). I am able to connect using ssh on the terminal.</p>
  <p><em>jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [anisbleHOST]. Message [Algorithm negotiation fail]]</em></p>
  <p>Ubuntu machine - auth.log
  <em>Unable to negotiate with xx.xx.xx.x port 39866: no matching host key type found. Their offer: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 [preauth]</em></p>
  <p>tried with the mentioned below sshd_config values but no luck.</p>
  <p><strong>HostKeyAlgorithms</strong> ssh-ed25519-cert-v01@openssh.com,ssh-ed25519</p>
  <p><strong>KexAlgorithms</strong> curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1</p>