sudo: no tty present and no askpass program specified

时间:2022-12-26 07:33:48

sudo: no tty present and no askpass program specified | 学步园

https://www.xuebuyuan.com/2157339.html

通过ssh  host  cmd ,在本机可以直接在远端服务器上执行命令并返回;

但是如果 cmd 中有使用sudo的相关命令和脚本时,报错:sudo: no tty present and no askpass program specified

可以通过 ssh -t host cmd解决;

ssh - sudo: no tty present and no askpass program specified - Ask Ubuntu
https://askubuntu.com/questions/281742/sudo-no-tty-present-and-no-askpass-program-specified

sudo: no tty present and no askpass program specified - smallApple - CSDN博客
https://blog.csdn.net/ksksjipeng/article/details/75267153

sudo: no tty present and no askpass program specified 解决方法 - gezehao的专栏 - CSDN博客
https://blog.csdn.net/gezehao/article/details/47317103

etc/sudoers配置文件详解 - xoker - 博客园
http://www.cnblogs.com/woxing/articles/3534558.html