I am trying to execute a command via sudo through ssh...
something like this...
ssh -t a@b "sudo command"
getting an error saying sudo: command not found
what could be the prb?
I am trying to execute a command via sudo through ssh...
something like this...
ssh -t a@b "sudo command"
getting an error saying sudo: command not found
what could be the prb?
yes, it seems that sudo is not present on remote system.
-t option : Force pseudo-tty allocation - are you sure you want to use this ? You can simply omit "-t" it will work as well.
Sudo is installed on the remote system...sudo works when i login to the remote system without ssh. I have used -t bcuz i was getting a notif saying &TERM and -T is not specified.
ssh -t a@b "/full/path/sudo command"