HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need only sftp access not ssh for specific user
Operating System - HP-UX
1837498
Members
3893
Online
110117
Solutions
Forums
Categories
Company
Local Language
back
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
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
12-08-2008 05:28 AM
12-08-2008 05:28 AM
Need only sftp access not ssh for specific user
Hi,
I need to give sftp access only and not ssh for specific users.
Could someone help how to achieve this?
I tried giving /usr/bin/false as shell. but both ssh and sftp connections not getting established. getting connection closed message.
I need to give sftp access only and not ssh for specific users.
Could someone help how to achieve this?
I tried giving /usr/bin/false as shell. but both ssh and sftp connections not getting established. getting connection closed message.
Best wishes,
Ganesh.
Ganesh.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2008 05:40 AM
12-08-2008 05:40 AM
Re: Need only sftp access not ssh for specific user
Have you tried with shell - /opt/ssh/utils/sftponly ?
Check also script ssh_chroot_setup.sh
regards,
ivan
Check also script ssh_chroot_setup.sh
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2008 06:31 AM
12-08-2008 06:31 AM
Re: Need only sftp access not ssh for specific user
creating a dummy shell that allows the user to do nothing.
I.e., compile this:
#include
int main ()
{
fprintf (stderr, "Sorry, sftp-only account. Bye.\n");
exit (0);
}
Give the executable a name like /usr/local/bin/sftp-only-shell
and then put that as the shell for each user who needs to be
sftp-only.
I believe you will also want to add that pathname to /etc/shells,
Thx,
Johnson
I.e., compile this:
#include
int main ()
{
fprintf (stderr, "Sorry, sftp-only account. Bye.\n");
exit (0);
}
Give the executable a name like /usr/local/bin/sftp-only-shell
and then put that as the shell for each user who needs to be
sftp-only.
I believe you will also want to add that pathname to /etc/shells,
Thx,
Johnson
Problems are common to all, but attitude makes the difference
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP