我按照所有步骤操作并创建了该/home/dave/.ssh
文件夹。然后我跑了:
ssh-keygen -t rsa –P ""
并得到:too many arguments
。我试过:
ssh-keygen -t rsa –P
然后它跳回提示符。
然后我尝试:
$ cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
cat: /home/dave/.ssh/id_rsa.pub: No such file or directory
我究竟做错了什么?
答案1
将破折号替换–
为-
:
ssh-keygen -t rsa -P ""