question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ssh ignores current users .ssh folder

See original GitHub issue

To 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:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
roisafirorichardcommented, Dec 23, 2021

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 to git@github.com:xxxx/xxxx.git and it becomes git@github-personal.com:xxxx/xxxx.git.

apparently the extension doesn’t support that and as a result I get the same error message

Fetching pull requests for remote 'origin' failed, please check if the url git@github-personal.com:xxxx/xxxxx.git is valid.

please have a look at this.

2reactions
theking2commented, Dec 16, 2021

@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 Controlin vscode as:

git remote --verbose
origin  git@github-special.com:user2/proj2.git (fetch)
origin  git@github-special.com:user2/proj2.git (push)

Unfortunately Pull Requests ignores the settins in .ssh/config and always uses a fixed github.com (git@github.com:user2/proj2.git).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found