介绍 配置SS秘钥认证后,可以通过shell脚本免密删除文件或执行命令。 # 生成密钥对(如果还没有) ssh-keygen -t rsa# 将公钥复制到服务器 ssh-copy-id "$remote_user@$remote_host"