1,760
edits
Changes
→PART 2: running privileged commands on remote machines
</source>
: The above error indicated that you need a tty for the SSH session to prompt you for the sudo password. Please look up the ssh man page to find out the option which turn on a tty for the SSH session.
=== Run the ad-hoc fab command with privileged shell commands ===
: Let's try the corresponding ad-hoc fab command:<source lang='bash'>
fab --host=myvmlab.senecacollege.ca --port=7200 --user=student -- 'sudo yum install tree -y'