|
|||
|
I'm not sure whether it will satisfy your exact need.
SSH Password Auth Tweak is kept as enabled itself . I'm setting this for a particular user named "test" . Set the user's shell to: /usr/libexec/openssh/sftp-server ( give the correct path for sftp-server , wherever it is on the server) You can do this by opening /etc/passwd and change the shell field to /usr/libexec/openssh/sftp-server It may look like test:x:528:528::/home/test:/usr/libexec/openssh/sftp-server 2) Add /usr/libexec/openssh/sftp-server to /etc/shells This will allow sftp and disable shell access to user test But I haven't tried the SSH Private Key method . |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Enable sftp but lock down ssh. Possible? | gfisch | cPanel and WHM Discussions | 2 | 11-22-2006 08:38 PM |
| Disable SFTP | codegirl42 | cPanel and WHM Discussions | 5 | 03-16-2006 08:07 AM |
| How to have ftp,sftp or ssh via port 80 ? | Interdit | cPanel and WHM Discussions | 5 | 06-09-2005 11:55 AM |
| Server lost SSH and SFTP | madmac | cPanel and WHM Discussions | 1 | 04-19-2005 03:53 PM |
| SFTP/SSH really concerns me! Security! | mr.wonderful | cPanel and WHM Discussions | 5 | 06-14-2004 06:29 AM |