PowerShell / PowerShell/Win32-OpenSSH
Custom keyfile names not supported/working
Open
Nobody has claimed this yet.
More info needed
Waiting on Author
- Dominant language
- No language data
- Stars
- 8.3k
- Forks
- 819
- PR merge metrics
- No merged PRs in 30d
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
Only keyfile's with the name "id_rsa" and "id_rsa.pub" work with ssh-agent. Create a new SSH key with a custom name or change an existing key's name. Add SSH key with custom name to ssh-agent.
Expected behavior
Adding an ssh keyfile with any name allows authentication for various services.
Actual behavior
Authentication is not permitted when using an ssh keyfile with a name other than "id_rsa" and "id_rsa.pub"
Error details
No response
Environment data
PS C:\Users\Nulrie\Documents\Work\NOTA\code\Pre-Alpha_NOGEN> dir C:\Users\Nulrie\.ssh
Directory: C:\Users\Nulrie\.ssh
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 10/27/2022 3:45 PM 2636 known_hosts
-a---- 10/3/2022 8:02 PM 1221 known_hosts.old
-a---- 10/3/2022 9:30 AM 2655 notalabs
-a---- 10/3/2022 9:30 AM 576 notalabs.pub
PS C:\Users\Nulrie\Documents\Work\NOTA\code\Pre-Alpha_NOGEN> git pull
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
PS C:\Users\Nulrie\Documents\Work\NOTA\code\Pre-Alpha_NOGEN> ssh-add C:\Users\Nulrie\.ssh\notalabs
Enter passphrase for C:\Users\Nulrie\.ssh\notalabs:
Identity added: C:\Users\Nulrie\.ssh\notalabs (Nulrie@DESKTOP-HNI86N4)
PS C:\Users\Nulrie\Documents\Work\NOTA\code\Pre-Alpha_NOGEN> git pull
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
PS C:\Users\Nulrie\Documents\Work\NOTA\code\Pre-Alpha_NOGEN>
PS C:\Users\Nulrie\Documents\Work\NOTA\code\Pre-Alpha_NOGEN> dir C:\Users\Nulrie\.ssh
Directory: C:\Users\Nulrie\.ssh
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 10/27/2022 3:45 PM 2636 known_hosts
-a---- 10/3/2022 8:02 PM 1221 known_hosts.old
-a---- 10/3/2022 9:30 AM 2655 notalabs
-a---- 10/3/2022 9:30 AM 576 notalabs.pub
PS C:\Users\Nulrie\Documents\Work\NOTA\code\Pre-Alpha_NOGEN> git pull
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
PS C:\Users\Nulrie\Documents\Work\NOTA\code\Pre-Alpha_NOGEN> ssh-add C:\Users\Nulrie\.ssh\notalabs
Enter passphrase for C:\Users\Nulrie\.ssh\notalabs:
Identity added: C:\Users\Nulrie\.ssh\notalabs (Nulrie@DESKTOP-HNI86N4)
PS C:\Users\Nulrie\Documents\Work\NOTA\code\Pre-Alpha_NOGEN> git pull
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
PS C:\Users\Nulrie\Documents\Work\NOTA\code\Pre-Alpha_NOGEN> dir C:\Users\Nulrie\.ssh
Directory: C:\Users\Nulrie\.ssh
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 10/3/2022 9:30 AM 2655 id_rsa
-a---- 10/3/2022 9:30 AM 576 id_rsa.pub
-a---- 10/27/2022 3:45 PM 2636 known_hosts
-a---- 10/3/2022 8:02 PM 1221 known_hosts.old
PS C:\Users\Nulrie\Documents\Work\NOTA\code\Pre-Alpha_NOGEN> ssh-add C:\Users\Nulrie\.ssh\id_rsa
Enter passphrase for C:\Users\Nulrie\.ssh\id_rsa:
Identity added: C:\Users\Nulrie\.ssh\id_rsa (Nulrie@DESKTOP-HNI86N4)
PS C:\Users\Nulrie\Documents\Work\NOTA\code\Pre-Alpha_NOGEN> git pull
Enter passphrase for key '/c/Users/Nulrie/.ssh/id_rsa':
Already up to date.
PS C:\Users\Nulrie\Documents\Work\NOTA\code\Pre-Alpha_NOGEN>
Version
5.1.19041.1320
Visuals
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.