Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms #5

Open
mc-eddi opened this issue Jan 24, 2023 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@mc-eddi
Copy link

mc-eddi commented Jan 24, 2023

Hi,
thank you for the plugin.
We are using the plugin to connect to an Ubuntu SFTP server.
After upgrading Ubuntu from release 20 to 22 the sftp connection was not possible anymore.

Error on server side:
userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]

Workaround was to add ssh-rsa on server side:
PubkeyAcceptedAlgorithms=+ssh-rsa

Is there a possibility to change the algortihm from ssh-rsa to a more secure algo with config?
Or would we need a change e.g. in /master/lib/fastlane/plugin/sftp/helper/sftp_helper.rb

best regards
Malte

@oklimberg
Copy link
Owner

Sorry for the late reply.
I try to have a look into this, but my first guess would be to update the versions of net-ssh and/or net-sftp in file
fastlane-plugin-sftp.gemspec
net-ssh is currently at 7.1 so there will be probably additional code changes to be made.

@oklimberg oklimberg self-assigned this Jul 10, 2023
@oklimberg oklimberg added the bug Something isn't working label Jul 10, 2023
@mc-eddi
Copy link
Author

mc-eddi commented Jul 18, 2023

No problem. This workaround stills works for us.
Feel free to reach out to me if you need help with testing the new release after updating to net-ssh 7.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants