• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 862
  • Last Modified:

Grant SFTP access but not SSH access

I run a webserver on CentOS 5.  I created a new user called: "foo"

I want to give foo SFTP access but not command line access.
0
hankknight
Asked:
hankknight
  • 2
4 Solutions
 
fosiul01Commented:
to deny user to login to server by using ssh

edit

/etc/ssh/sshd_config

DenyUsers root finadmin
DenyGroups root finadmin

after that restart that sshd

0
 
Monis MontherSystem ArchitectCommented:
check this article and check the commnets posted with it, it will work with CentOS too

http://www.debian-administration.org/articles/94

also you can setup rssh

Good Luck
0
 
martin_2110Commented:
The other solutions will still let someone read the rest of your filesystem. They will start off in there /home/foo but will still be able to cd all the way up to /
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now