💻 Software
SSH: execute sudo command
Fresh6 days ago
Mar 15, 202673278 viewsConfidence Score0%
0%
Problem
I have an interactive shell script, that at one place needs to ssh to another machine (Ubuntu based) and execute something as root (the user should enter his password, but the remote command should run like noted in the script): However, I always get this error message back: OK, that's quite clear.…
Error Output
# ... ssh remote-machine 'sudo ls' # ...
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: SSH: execute sudo command
Low Risk
The wondrous has a cure for everything. The point is to add the flag to force ssh to allocate a pseudo-tty:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix