- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to arrange that sftp user won't see the messag...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 05:31 AM
тАО06-05-2009 05:31 AM
PS .hushlogin does not work ( only for /etc/motd
ssh version used : HP-UX Secure Shell-A.04.40.011, HP-UX Secure Shell version
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 05:44 AM
тАО06-05-2009 05:44 AM
Re: How to arrange that sftp user won't see the message in /etc/issue ?
do you use dedicated sftp users ? If yes, you can modify the code displaying the content of /etc/issue somehow like this:
if [ $LOGNAME != sftp_user] then cat /etc/issue
J.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 06:01 AM
тАО06-05-2009 06:01 AM
Solutionon the server side, you need to edit /opt/ssh/etc/sshd_config file and comment out the line looking like this :
Banner /etc/issue
then stop and restart sshd using
/sbin/init.d/secsh stop
/sbin/init.d/secsh start
but keep in mind that people connecting via ssh will not be able to see the /etc/issue as well. If this is accaptable, go ahead and modify it.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 06:10 AM
тАО06-05-2009 06:10 AM
Re: How to arrange that sftp user won't see the message in /etc/issue ?
thanks for your reply ..
The problem is that we need that banner info for all users using ssh . ( Needed for security audits ) . Only a couple of sftp users doesn't want to see this banner info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 06:21 AM
тАО06-05-2009 06:21 AM
Re: How to arrange that sftp user won't see the message in /etc/issue ?
One thing comes to mind, you can opt to run another sshd bound to another obscure port of your choosing with a different config file and you can distribute a wrapper script for the sftp users which will execute the sftp command with the port number of your choosing. Otherwise, they have to live with the display of the /etc/issue.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 06:31 AM
тАО06-05-2009 06:31 AM
Re: How to arrange that sftp user won't see the message in /etc/issue ?
Again thanks for this info , I was already afraid of this answer .
I think the user will have to except the last line you wrote .
Thanks , nice weekend !