我是在 Ubuntu 16.04 上设置 SSH 密钥的新手。我正在寻找一个授权密钥来删除命名anne
,但我想我删除了整个authorized_keys
文件。
mike@mike-thinks:~$ rm /home/mike/.ssh/
authorized_keys id_rsa id_rsa.pub known_hosts
mike@mike-thinks:~$ rm /home/mike/.ssh/authorized_keys
是不是很严重的错误?如果是,如何再生它们?同时我这样做了:
mike@mike-thinks:~/.ssh$ touch ~/.ssh/authorized_keys
mike@mike-thinks:~/.ssh$ ls
authorized_keys id_rsa id_rsa.pub known_hosts
mike@mike-thinks:~/.ssh$ chmod 600 ~/.ssh/authorized_keys