Credit:
To keep updated with the tool visit the project's homepage at:
http://www.pizzashack.org/rssh/
Details
rssh is a restricted shell for use with
OpenSSH, allowing only scp and/or sftp. For example, if you have a server which you only want to allow users to copy files off of via scp, without providing shell access, you can use rssh to do that.
Though rssh is written to work with OpenSSH, it will probably work with other implementations of SSH. Also, rssh is written and tested on Linux systems, but should compile cleanly and work on any POSIX.2-compliant system. It is verified to work on the following platforms:
* A wide variety of Linux distributions, on IA32 and IA64 hardware
* Compaq Tru64 Unix
* Solaris 2.x - 8 (under certain conditions -- see the security link)
* AIX 5.1
* HP/UX 11.00 (PA-RISC)
* HP/UX 11.22 (IA64)
* Irix 6.5
* *BSD support: rssh should compile on FreeBSD 5 and CURRENT. For other versions, see note below.
Download Information:To obtain the tool see the
Download page.
*BSD and OSX support:Rssh requires wordexp() function for command line argument expansion (defined by POSIX.2). Currently, not all *BSDs have this function in their libc, nor does OS X. Until they have such a function, rssh will not work with the BSDs out of the box.
If you're on a BSD system without the wordexp() function, you could work around this by obtaining a copy of the wordexp() function's code from, say, glibc2, and creating your own wordexp.h header. Compile wordexp.c manually, and link it against the other .o files. If anyone has code with a BSD license that can be plugged into rssh to make it work on BSD systems, the author will gladly add it to the source code. This might be easy enough to snag from FreeBSD 5.