Re: Restricted SSH access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

Sure, remove login by password and only allow login by authentication, the limit the key used to one command, using "command=xxx" in the authorized_keys file (see man sshd). Now make that command a tiny "pick a command" interface you write in C, python, perl... so they connect using their individual key, and you allow them to do only what you you approve. Should take about two hours to actually do it, assuming you have the commands they run all written.

P.S. Somebody might ask why would somebody use ssh for that limited access. Answer is that it must be supported, project specifications...

Thx in advance!

Vlada



--
Bill Davidsen <davidsen@xxxxxxx>
  "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux