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

Add DSAAuthentication to synced_folders/rsync & add PubkeyAuthentication #12759

Closed

Conversation

mmlb
Copy link

@mmlb mmlb commented May 5, 2022

This adds the DSAAuthentication=yes option to rsync's rsh command when appropriate, just like done in ssh. This should fix #8183.

I've also added support for PubkeyAuthentication as its been around for 20 years now and replaces DSAAuthentication. This is most beneficial when trying to debug ssh connection issues and searching for DSAAuthentication turns up very little information.

@hashicorp-cla
Copy link

hashicorp-cla commented May 5, 2022

CLA assistant check
All committers have signed the CLA.

@mmlb
Copy link
Author

mmlb commented May 5, 2022

Not sure if adding PubkeyAuthentication to all ssh clients is ok or if I need to do something special for solaris or other oses. Also I'm expecting tests to fail atm, wanted to get this out first.

Copy link

@vielmetti vielmetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, only question is if this will interact with any policy questions.

@mmlb mmlb force-pushed the fix-ssh-and-rsync-when-pubkeyauthentication=no branch from c626649 to 5c48cd5 Compare May 5, 2022 18:19
@mmlb
Copy link
Author

mmlb commented May 11, 2022

ping @mitchellh @briancain @chrisroberts (according to git-blame&git-log)

@mmlb mmlb force-pushed the fix-ssh-and-rsync-when-pubkeyauthentication=no branch from 5c48cd5 to 1031faf Compare June 15, 2022 20:20
@ashleemboyer
Copy link
Contributor

Hi @mmlb! I've just merged in #13048, which modified 120 MDX files and added a new workflow that would be good to have run on this PR. Since this is from a fork, I'm not sure I have permissions to rebase on main for you, so I wanted to send this quick message to let you know to update with main. Thanks!

mmlb added 2 commits January 23, 2023 17:19
I kept having `rsync` prompt for vagrant users' password, but `ssh` never
did. I tracked it down to my default ssh config having PubkeyAuthentication=no
by default. The `ssh` builtin doesn't get stuck because it provides
`DSAAuthentication=yes` by default which is treated as an alias to
PubkeyAuthentication since openssh-2.5.1p1.

Fixes hashicorp#8183
And mark DSAAuthentication as deprecated. PubkeyAuthentication was introduced
in OpenSSH 2.5.1p1 (2001-02-19) as a replacement for DSAAuthentication,
current documentation does not mention DSAAuthentication which makes debugging
issues harder than necessary.
@mmlb mmlb force-pushed the fix-ssh-and-rsync-when-pubkeyauthentication=no branch from 1031faf to 21146f7 Compare January 23, 2023 22:19
@mmlb
Copy link
Author

mmlb commented Jan 23, 2023

Hi @ashleemboyer I've rebased ontop of latest main and pushed, PTAL. I'd appreciate getting this over the wall and done!

@mmlb
Copy link
Author

mmlb commented Jan 23, 2023

Also fyi @ashleemboyer it looks like those mdx link-checker checks are making assumptions that the PRs are always originating from this repo and not from forks. I've been notified that they failed on my fork/branch :( .

@mmlb
Copy link
Author

mmlb commented Sep 8, 2023

I do not agree to license this change under the current vagrant license there for I am closing this PR.

@mmlb mmlb closed this Sep 8, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rsync error with PubkeyAuthentication no in ~/.ssh/config
4 participants