- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to disable sftp/scp for user connecting thru ...
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
Forums
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
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
тАО09-26-2006 02:27 PM
тАО09-26-2006 02:27 PM
How to disable sftp/scp for user connecting thru SSH?
Is there any way to allow a user list to login system through SSH but disallow file transfering tool after this user list login the system?
My environment is: HP-UX 11iv1, HP Secure Shell A.04.30.014, a group of users have to connect to the server and run specific application thru SSH. We have tried ssh_chroot.sh to restrict this group users to access other file systems, but the chroot function is not welcomed by the application env. i.e. this group users only can run applcation without chroot. And it is too hard for us to change application configuration suitable for the chroot environment.
Thanks in advance,
Stan Du
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2006 09:24 PM
тАО09-26-2006 09:24 PM
Re: How to disable sftp/scp for user connecting thru SSH?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2006 12:04 AM
тАО09-27-2006 12:04 AM
Re: How to disable sftp/scp for user connecting thru SSH?
You can disable sftp by commenting out this line:
# Subsystem sftp /opt/ssh/libexec/sftp-server
in /opt/ssh/etc/sshd_config.
I'm not sure that you can disable scp, as its functionality can always be duplicated through ssh:
ssh user@remote-host "cat > remote-file" < local-file
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2006 12:22 AM
тАО09-27-2006 12:22 AM
Re: How to disable sftp/scp for user connecting thru SSH?
You can do this with tcp wrappers, possibly.
You have to identify the daemon for scp and sftp. Hopefully its not sshd. If its not, you can totally disable it in the /etc/hosts.deny file.
If it is one daemon for all, then its may require you to write some custom code in /etc/profiles or by modifying the ssh_chroot.sh script. I'd look there and see if you can take part of its functionality without going full blown chroot.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2006 03:35 PM
тАО09-27-2006 03:35 PM
Re: How to disable sftp/scp for user connecting thru SSH?
I have visited SSH web and got known that it is not possible to deny file transfering while connecting thru SSH. it is also impossible to allow specific user list to use sftp. So i have to give up it.
Stan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2006 02:08 AM
тАО09-28-2006 02:08 AM