Restricted SSH access

Les Mikesell lesmikesell at gmail.com
Fri Oct 26 22:02:00 UTC 2007


Vladimir Kovacevic wrote:
> Hi!
> I'm working on embeded Fedora on Atmel and have a problem with 
> restricting ssh access for user that log on to system.
> The only privilege I want to give them is executing some programs that I 
> wrote (permit any view on a system directories except /home/user_name).
> I looked in /etc/ssh_config but did't find what I was looking wor. Also,
> tried with assigning a user /bin/bash console with -r (restricted) 
> parameter (set it up on /etc/passwd)
> but then I couldn't log on with putty or WinSCP to system.
> Any ideas for simple solution for my problem?
> 
> P.S. Somebody might ask why would somebody use ssh for that limited 
> access. Answer is that it must be supported, project specifications...
>

If you don't want someone to see the system directories, you have to 
build a chroot environment and keep them there.

http://www.howtoforge.com/chroot_ssh_sftp_fedora7

-- 
   Les Mikesell
    lesmikesell at gmail.com




More information about the fedora-list mailing list