问题描述
在Windows 10上,ssh-add命令给出以下错误:
Could not add identity "C:\users\<username>\.ssh\id_rsa_win": invalid format
我生成了这样的密钥:ssh-keygen -t rsa -N 'my pass phrase' -C 'generated by windows openssh' -f C:\Users\<username>\.ssh\id_rsa_win
Get-Command ssh-keygen
CommandType Name Version Source
----------- ---- ------- ------
Application ssh-add.exe 7.7.2.1 C:\Windows\System32\OpenSSH\ssh-add.exe
Get-Command ssh-add
CommandType Name Version Source
----------- ---- ------- ------
Application ssh-add.exe 7.7.2.1 C:\Windows\System32\OpenSSH\ssh-add.exe