FG

non-interactive ssh sudo... prompts for the password in plain text

Fresh3 days ago
Mar 15, 20265121 views
Confidence Score0%
0%

Problem

I'm running some non-interactive ssh commands. The ssh authentication is taken care of fine through the ssh agent, but if I run a command that requires sudo then the password prompt in my terminal is plain text. For example: will prompt me for the password in plain text. Does anyone know how I can …

Error Output

ssh remotemachine "sudo -u www mkdir -p /path/to/new/folder"

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: non-interactive ssh sudo... prompts for the password in plain text

Low Risk

Use : man ssh So your command will be If you don't want to enter password, you can (if you are allowed to) modify using command . Add parameter , for example If you can't edit /etc/sudoers, you can use : man sudo With that, command would be Remember…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment