适用于ubuntu&debian&alpine,请对应安装
说明:
极大简化了服务器安装ssh密钥的工作,一键导入,导入后,脚本会自动修改sshd_config的配置参数,省心省力,当然也可以直接生成新证书使用。

Ubuntu&Debian 脚本
curl -fsSL https://raw.githubusercontent.com/hanigege/scripts/main/ubuntu_ssh_key_manage.sh -o ubuntu_ssh_key_manage.sh && chmod +x ubuntu_ssh_key_manage.sh && bash ubuntu_ssh_key_manage.shAlpine root 用户脚本
curl -fsSL https://raw.githubusercontent.com/hanigege/scripts/main/alpine_root_ssh_key_manage.sh -o alpine_root_ssh_key_manage.sh && chmod +x alpine_root_ssh_key_manage.sh && sh alpine_root_ssh_key_manage.shAlpine 普通用户脚本
curl -fsSL https://raw.githubusercontent.com/hanigege/scripts/main/alpine_user_ssh_key_manage.sh -o alpine_user_ssh_key_manage.sh && chmod +x alpine_user_ssh_key_manage.sh && sh alpine_user_ssh_key_manage.sh