小米设备软固化SSH时备份还原authorized_keys

This commit is contained in:
Lucas Liu
2022-07-22 04:12:10 +08:00
parent ce1b4cb926
commit 651dec0914
2 changed files with 2 additions and 0 deletions

View File

@@ -1321,6 +1321,7 @@ tools(){
read -p "请输入需要还原的SSH密码(不影响当前密码,回车可跳过) > " mi_autoSSH_pwd
mi_autoSSH=已启用
cp -f /etc/dropbear/dropbear_rsa_host_key $clashdir/dropbear_rsa_host_key 2>/dev/null
cp -f /etc/dropbear/authorized_keys $clashdir/authorized_keys 2>/dev/null
echo -e "\033[32m设置成功\033[0m"
sleep 1
else