我只是在我的Linux上重新安装openssh服务器,我需要生成新的密钥,但是我在哪里都找不到怎么做呢?
当我搜索的时候,他们只拿了一些要登录的密钥,以及如何创建公钥。
但是如何更改/替换服务器密钥呢?
发布于 2020-08-07 03:36:59
要重新生成密钥,您需要删除旧键(或将它们移开):
sudo rm /etc/ssh/ssh_*_key{,.pub}
然后生成钥匙。在基于Debian的系统上,
sudo dpkg-reconfigure openssh-server
在其他系统上,
ssh-keygen -A
https://unix.stackexchange.com/questions/603317
复制相似问题