How To Install rssh on Fedora 36
Introduction
In this tutorial we learn how to install rssh
on Fedora 36.
What is rssh
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. It is a alternative to scponly.
We can use yum
or dnf
to install rssh
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rssh.
Install rssh on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install rssh
using dnf
by running the following command:
sudo dnf -y install rssh
Install rssh on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install rssh
using yum
by running the following command:
sudo yum -y install rssh
How To Uninstall rssh on Fedora 36
To uninstall only the rssh
package we can use the following command:
sudo dnf remove rssh
rssh Package Contents on Fedora 36
/etc/rssh.conf
/usr/bin/rssh
/usr/lib/.build-id
/usr/lib/.build-id/15
/usr/lib/.build-id/15/23850358619cd7ea8e50ece2792a8e44213c47
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/42438bb73eb93f16d788e24310737bc5db0616
/usr/libexec/rssh_chroot_helper
/usr/share/doc/rssh
/usr/share/doc/rssh/AUTHORS
/usr/share/doc/rssh/CHROOT
/usr/share/doc/rssh/ChangeLog
/usr/share/doc/rssh/NEWS
/usr/share/doc/rssh/README
/usr/share/doc/rssh/SECURITY
/usr/share/doc/rssh/TODO
/usr/share/doc/rssh/conf_convert.sh
/usr/share/doc/rssh/mkchroot.sh
/usr/share/licenses/rssh
/usr/share/licenses/rssh/COPYING
/usr/share/man/man1/rssh.1.gz
/usr/share/man/man5/rssh.conf.5.gz
References
Summary
In this tutorial we learn how to install rssh
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).