ssh -t 和 heredoc 一起用,sudo 拿不到终端:a terminal is required to read the password

Domain: devops · Evidence E1 — Maintainer reviewed
sshsudoheredocttydeploymentbash

Summary

部署脚本里 `ssh host 'sudo ...'` 报 `sudo: a terminal is required to read the password; either use the -S option...`,脚本卡住或直接失败。

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons