Is it possible, when locally writing output from SSH command execution, to suppress the hostname and [sudo] lines?
For instance, when I SSH into a server and run
sudo <command> it displays
<hostname> [sudo] password for user:
This is written to the file I'm writing the output to. I'm using
sudo <command> 2>&1 /dev/null but it isn't eliminating those lines.