ssh-copy-id icon indicating copy to clipboard operation
ssh-copy-id copied to clipboard

Windows: Cannot open key file

Open biofractal opened this issue 8 years ago • 1 comments

Thanks for the windows version. Unfortunately when I run it I get the following error:

ERROR: key file '/c/Users/Jonny\.ssh\id_rsa.pub' could not be opened.

The id_rsa.pub file does exist at the location specified and it can be opened in notepad++.

I am running my command window with full administrator privileges.

Thanks

biofractal avatar Jul 03 '17 10:07 biofractal

Sorry for the very late reply. I assumed that you are using something like a git bash to run the command. Hence, Python will get confused about your HOME directory(/c/Users/Jonny instead of C://Users/Jonny). Try using cmd to run the command or specify the key location with -i.

zhengyi-yang avatar Dec 06 '17 09:12 zhengyi-yang