modify scripts
This commit is contained in:
4
tools/ssh_key_push.sh
Normal file → Executable file
4
tools/ssh_key_push.sh
Normal file → Executable 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 密钥对..."
|
||||
|
||||
Reference in New Issue
Block a user