ssh ignores current users .ssh folder
See original GitHub issueTo keep track of multiple accounts a custom ssh configuration is uesd with sample
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_normal
Host github-special.com
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_special
pull-request-github complaints about connection git@github-special.com;user/repo.git
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:9 (3 by maintainers)
Top Results From Across the Web
why is ssh ignoring user config file
This happens when the .ssh directory is not executable by the ssh process. There's no way that /var/www/html/.ssh should exist in any event, ......
Read more >Why is SSH suddenly complaining about permissions on .ssh ...
Try looking through your ~/.bash_history (or your shell of choice's history file) to see if you accidentally did chmod-ed your private key.
Read more >SSH Between Host Not Working - Red Hat Customer Portal
I have server A and server B and can ssh from server A to server B if I'm logged in as the user...
Read more >Newly-created SSH keys landed in my home folder rather than ...
One possible issue: There is no id_rsa folder nested in my .ssh folder, only a known_hosts file is found there. I ask for...
Read more >ssh "permissions are too open" - Stack Overflow
Permissions 0777 for '/Users/username/.ssh/id_rsa' are too open. It is recommended that your private key files are NOT accessible by others. This private key ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I also have the same issue, I use multiple accounts one personal and another one for work, I clone using my personal. account by adding
-personal
togit@github.com:xxxx/xxxx.git
and it becomesgit@github-personal.com:xxxx/xxxx.git
.apparently the extension doesn’t support that and as a result I get the same error message
please have a look at this.
@DirtySoc it is possible to work with mulitple github accounts exactly in the way I described. If I clone from my ‘normal’ account I use:
git clone git@github.com:user1/proj1.git
if I clone from my special account I use:
git@github-special.com:user2/proj2.git
This works in
Source Control
in vscode as:Unfortunately Pull Requests ignores the settins in .ssh/config and always uses a fixed github.com (git@github.com:user2/proj2.git).