What is the difference between the following commands?
ssh myhostname \"command1; command2;...commandn;\" 2>/dev/null ssh myhostname \"command1; command2;
2> means "redirect standard-error" to the given file.
2>
/dev/null is the null file. Anything written to it is discarded.
/dev/null
Together they mean "throw away any error messages".