-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Labels
kind/bugThis issue represents a verified problem we are committed to solvingThis issue represents a verified problem we are committed to solvingp2state/backlogOn the backlog (2/4)On the backlog (2/4)
Description
Team
- I've assigned a team label to this issue
Severity
potentially blocking
Version
any
Latest Version
I could reproduce the problem in the latest build
What happened?
RSA keys working when manually connecting but not working inside Octopus, throwing userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
.
ssh-rsa
is disabled in openssh 8.8+ which Ubuntu 22.04 ships with. Our SSH client seems to be affected by this. There's a workaround as well as a PR we could look at bringing in.
Reproduction
- Create a Ubuntu 22.04 instance
- Create an RSA key pair (or download directly from AWS)
- Add pub key to instance
- Do a manual ssh connection <- This works
- Add private key to Octopus
- Add instance as an SSH target and do a health check <- This fails
Error and Stacktrace
Sep 7 18:20:42 ip-172-31-8-76 sshd[196978]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Sep 7 18:20:42 ip-172-31-8-76 sshd[196978]: Connection closed by authenticating user ubuntu 52.250.93.133 port 3136 [preauth]
More Information
Customer ticket - https://octopus.zendesk.com/agent/tickets/95925
Internal discussion - https://octopusdeploy.slack.com/archives/CNHBHV2BX/p1662589109899939
SSH.NET Upstream discussion - sshnet/SSH.NET#956
Workaround
Possible workarounds (not always possible)
- use an older version of ubuntu
- use a different key type, e.g. ed25519
DanWillman and chounry
Metadata
Metadata
Assignees
Labels
kind/bugThis issue represents a verified problem we are committed to solvingThis issue represents a verified problem we are committed to solvingp2state/backlogOn the backlog (2/4)On the backlog (2/4)