Operating System - Linux
1755442 Members
3420 Online
108833 Solutions
New Discussion юеВ

Supress SSH Login Banner for sftp login

 
SOLVED
Go to solution
MikeL_4
Super Advisor

Supress SSH Login Banner for sftp login

We are running Red Hat Version 5.5 and we have a client that uses sftp to transfer and pick up files from our server...

We have a Login Banner that is displayed for logins, but is there any way to supress this banner for a certain login ID for sftp ??
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Supress SSH Login Banner for sftp login

Shalom,

This is controlled by the sshd_config file

As far as I know its all or nothing as far as users.

It is fully documented at http://openssh.org

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Matti_Kurkela
Honored Contributor
Solution

Re: Supress SSH Login Banner for sftp login

Unfortunately, RHEL 5.x contains OpenSSH 4.3 (+ a lot of backported security patches), which does not yet have the "Match" keyword in sshd_config file.

OpenSSH 4.4 and above would have a "Match" keyword which can be used to implement this requirement.

For example:

# define the common banner
Banner "some text"

# define an exception
Match User someuser
Banner ""

Note: the Match blocks must be placed at the end of the sshd_config file. Since there is no "EndMatch" keyword, all configuration options after the Match line until the end of file or another Match line will be applied to the matching connections only.

MK
MK
MikeL_4
Super Advisor

Re: Supress SSH Login Banner for sftp login

Thanks