SSH Command not found

Hi @nicktagz
Prompting a password by sudo depends on the server configuration.

Prompting sudo passwords could be turned off for a whole system.
Also, it is possible to configure an allowlist of applications that permit sudo without a password.

If you want to pass a sudo password, the command line should be something like this.

echo 'password' | sudo -kS /usr/local/bin/docker ps

Where /usr/local/bin/docker ps is a desired command.

See this link for more info.

1 Like