Open main menu

CDOT Wiki β

Changes

OPS435 Python3 Lab 8

27 bytes added, 16:16, 3 July 2020
Run the ad-hoc fab command with privileged shell commands
: 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 privileged yum command on remote machine using ad-hoc fab command with privileged shell commands ===: Let's try the corresponding ad-hoc fab commandon your VM:<source lang='bash'>
fab --host=myvmlab.senecacollege.ca --port=7200 --user=student -- 'sudo yum install tree -y'
</source>
1,760
edits