Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo免密? #11

Closed
lanybass opened this issue Mar 29, 2020 · 1 comment
Closed

sudo免密? #11

lanybass opened this issue Mar 29, 2020 · 1 comment

Comments

@lanybass
Copy link

我看您在博文中提到了参考文档:
https://stackoverflow.com/questions/44471749/golang-enter-ssh-sudo-password-on-prompt-or-exit

但项目中并没有加入此机制?
sudo要求输密码的时候就会卡住

@wsxzhmzwdfxeds
Copy link

echo "***" | sudo {cmd}

this may help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants