SSH keys with custom names do not work for testing ssh connection and git push #156443
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
I had to test ssh connection with github by using this command:
ssh -T -i ~/.ssh/github git@github.comnot as mentioned in docs:
ssh -T git@github.combecause I created ssh key with custom name 'github' and not default one 'id_ed25519'. This is bug because software checks only default names as can be seen in output of:
ssh -vT git@github.comThis workaround with '
ssh -T -i ~/.ssh/github git@github.com' does not solve problem with 'git push'. When user switches urls from HTTPS to SSH with:git remote set-url origin git@github.com:username/reponame.git'
git push' does NOT work if user has custom name for ssh key instead of deafault one so on'git push' user gets this:And this is probably because git push uses under the hood come ssh command that uses exclusively default ssh key names and not custom ones and as far as I can see there is no way to make (another) workaround for this.
Beta Was this translation helpful? Give feedback.
All reactions