Unable to copy ~/.ssh/id_rsa.pub

前端 未结 8 2070
予麋鹿
予麋鹿 2021-01-29 21:37

I’m following in Generating SSH Keys, it says

sudo apt-get install xclip

Downloads and installs xclip. If you don\'t have <

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-29 22:15

    Based on the date of this question the original poster wouldn't have been using Windows Subsystem for Linux. But if you are, and you get the same error, the following alternative works:

    clip.exe < ~/.ssh/id_rsa.pub
    

    Thanks to this page for pointing out Windows' clip.exe (and you have to type the ".exe") can be run from the bash shell.

提交回复
热议问题