每次新建了一个VPS,或者重装了Debian系统,要把ssh密码登录改成密钥登录都要输好多条命令,略显繁琐,所以写了一个小脚本,可以一键执行! #!/bin/bash # Backup existing SSH configuration sudo cp /etc/ssh/sshd_confi