Consider command<br />
tar -cv some_files |ssh <a href="mailto:user@dw">user@dw</a>_dev 'sudo tar -C /tmp/ -xv'<br />
where ssh doesn't need password (ssh keys)<br />
and sudo does not need password also because of NOPASSWD: in /etc/sudoers.<br />
<br />
There is error<br />
sudo: sorry, you must have a tty to run sudo<br />
<br />
Command sudo should not ask for tty when it does not need password even requiretty is set.
↧