Re: .ssh/config equivalent of -q ?



One way that may work to supress the banner on the ssh client-side is to
take advantage of the fact that the client sends the banner to stderr.

So a command like the following may work for you.

ssh user@hostname 2>/dev/null

Some caveats:
This will also supress any other information that is sent to stderr
Some hosts may implement the 'banner' function differently so that the
banner is not sent to stderr.

Rick Blasiak

blasiak@xxxxxxxxxx



Relevant Pages

  • Re: SSHD Banners and rsync
    ... and while redirecting stderr to /dev/null does supress the banner, ... Iin OpenSSH, ssh -q suppressing the SSH2 protocol banner is version ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • SSHD Banners and rsync
    ... and while redirecting stderr to /dev/null does supress the banner, ... or to configure SSHD to not display the banner for certain ...
    (comp.security.ssh)
  • Re: SSHD Banners and rsync
    ... and while redirecting stderr to /dev/null does supress the banner, ... or to configure SSHD to not display the banner for certain ... does not suppress the banner in interactive sessions as this is done by the shell or login prozess when it is configured by /etc/default/login. ...
    (comp.security.ssh)
  • A Banner.
    ... When executing sftp in batch mode, the banner displayed to stderr. ...
    (SSH)