modify scripts

This commit is contained in:
oscarz
2025-06-26 16:35:19 +08:00
parent 0f404c0787
commit 443f8357da
4 changed files with 17 additions and 53 deletions
Regular → Executable
+4
View File
@@ -1,5 +1,9 @@
#!/bin/bash
: << 'EOF'
配置主机之间的信任关系,使得scp,ssh 等可以免密登陆
EOF
# 检查本地是否存在 id_rsa.pub
if [ ! -f ~/.ssh/id_rsa.pub ]; then
echo "本地未找到 id_rsa.pub,开始生成新的 SSH 密钥对..."