このエラーが引き続き発生するので、これを修正するためにオンラインで議論されたいくつかの方法を試してみましたが、何も機能していません。私が実行したとき、私は、セットアップのSSHキーがそうしている'ssh newton@host.com'
、それは自動的に私をログに記録し、私はまた、このユーザーを設定しているvisudo
ことを'newton ALL=(ALL:ALL) ALL'
、私は、その後も追加しようとしました'newton ALL=NOPASSWD: /var/www/script.sh'
残念ながら、ssh newton@host.com 'sudo /var/www/script.sh'
Cygwinから実行するたびに戻ってきます。追加しようとし-t -t
ましたが、パスワードの入力を求められます。
total size is 21209180 speedup is 314.69
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
ssh example.com sudo echo hello
あるLinuxシステムから別のLinuxシステムへの使用でも同じ問題が発生します。それに応じてタイトルを更新しました。また、Unixサイトへの移行に関する質問にフラグを立てました。