Hi all, One question, the ssh man page says the -q option suppress all warnings and diagnostics. however, the following condition still has the warning message appeared on the console: #man ssh .............. -q Quiet mode. Causes all warning and diagnostic messages to be suppressed. .............. # ssh -q -i ~/.ssh/id_dsa_3 sshpa3 "uname -a" Warning: Identity file //.ssh/id_dsa_3 not accessible: No such file or directory. I checked the source code that if we use "-q" option, we just set the log level to QUIET, and the above warning message is printed from the -i option (pls see the attachment file) Although the message appeared in the console says it's a warning, but actually it’s an error, so should we revise the message to “Error: Identity file….” Or change the man page of ssh –q option?
Created attachment 1440 [details] a piece of code from sshd.c
Created attachment 1441 [details] a piece of code from sshd.c
Why is this "critical"? If the messages are bugging you, you can either set the IdentityFile to something else (eg /dev/null) or redirect stderr to /dev/null "ssh -q 2>/dev/null foo bar".
(In reply to comment #3) > Why is this "critical"? If the messages are bugging you, you can > either set the IdentityFile to something else (eg /dev/null) or > redirect stderr to /dev/null "ssh -q 2>/dev/null foo bar". So should we revise the manual of ssh or just leave it there? for the manual of -q option conflicts with the output.
Manual revised - it now says "most" instead of "all".
Fix shipped in 4.9/4.9p1 release.