Operating System - HP-UX
1820278 Members
2936 Online
109622 Solutions
New Discussion юеВ

Re: Banner message in SFTP

 
Selvakumar_4
Occasional Advisor

Banner message in SFTP

Hi,

How can we set the Banner message in SFTP.
Thanks.

Regards,
Selva
5 REPLIES 5
Peter Godron
Honored Contributor

Re: Banner message in SFTP

Selva,
do a man sshd_config and look for Banner.
Arunvijai_4
Honored Contributor

Re: Banner message in SFTP

Hi Selva,

You need to edit /opt/ssh/etc/sshd.conf and look for banner.

# no default banner path
#Banner /some/path

Also, I am not sure SFTP supports banner.

http://www.derkeiler.com/Mailing-Lists/securityfocus/Secure_Shell/2003-06/0192.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Steven E. Protter
Exalted Contributor

Re: Banner message in SFTP

Shalom Selv

From the Man page(chopped up.)
Banner
In some jurisdictions, sending a warning message before authentication may be relevant for getting legal protection. The contents of the specified file are sent to the remote user before authentication is allowed. This option is only available for protocol version 2. By default, no banner is displayed.

Basicially, specify a file and restart the daemon. The contents of the file are displayed.

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
HGN
Honored Contributor

Re: Banner message in SFTP

Hi

You can set the banner
file name /opt/ssh/etc/sshd_config
edit line and add
Banner /etc/issue
Put whatever you want on the issue file

Rgds

HGN

Selvakumar_4
Occasional Advisor

Re: Banner message in SFTP

Thanks Arun..it is working..

Regards,
Selva