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

SSH: don't force port 22 if none is given #1382

Merged
merged 1 commit into from Jul 7, 2020
Merged

Conversation

wmertens
Copy link
Contributor

@wmertens wmertens commented Jul 6, 2020

This way, the port specified in the SSH config can be used.

Note, this is completely untested, I just wanted to write this down to see what it would entail to fix #1053

@wmertens wmertens marked this pull request as draft July 6, 2020 16:03
@wmertens wmertens marked this pull request as ready for review July 6, 2020 16:08
@wmertens wmertens force-pushed the patch-1 branch 2 times, most recently from bacc4d4 to e43d482 Compare July 6, 2020 16:24
@wmertens
Copy link
Contributor Author

wmertens commented Jul 6, 2020

🎉 I can confirm this works.

This way, the port specified in the SSH config can be used
@adisbladis
Copy link
Member

I am a bit torn about this PR.

I would consider making NixOps completely disregard ~./config/ssh unless opted in to as it's a configuration file not managed in the NixOps network.

For now I'll just merge this as-is. It does no harm and I'm not entirely convinced my reasoning is correct.

@adisbladis adisbladis merged commit 96ea3f8 into NixOS:master Jul 7, 2020
@wmertens wmertens deleted the patch-1 branch October 14, 2020 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSH port in ~/.ssh/config is ignored
2 participants