Install and setup rssh and scponly

How to install and setup rssh and scponly?

With use of OpenSSH, rssh is a restricted shell, scp and sftp are only allow. It also includes rdist, rsync and cvs support. Rssh is also known to work for a list of platform. Scponly is an alternative shell. The system administrators provide access with read and write local files without providing remote execution privilege to the remote user. A common usage of scponly is creating semi-public account. It is best described as a wrapper to the tried and true ssh suite of applications. 


We can use yum or apt-get to install rssh and scponly in servers.

# apt-get install rssh

# apt-get install scponly

# yum install rssh

# yum install scponly

If there are any problems occurs to install rssh, then you should download sources and do the following steps.



make install

Here are the links:

latest rssh .tar.gz

latest scponly .tgz.



scponly does not need any configuration and works out of the box so you just should set it as a shell for user account.

Create new user account with scponly.

# useradd -s /usr/sbin/scponly user

To modify user account to set rssh as a shell

# usermod -s /usr/sbin/rssh user2

Restrict all users to scp and rsync only then you should uncomment lines in rssh.conf.








The user1 is enabled only scp and rsync using rssh. To access the server via SSH under user1 account will end with the following output.

ssh [email protected]

[email protected]’s password:

This account is restricted by rssh.

Allowed commands: scp rsync

If you believe this is in error, please contact your system administrator.

Connection to IP closed.


But in the same time scp transfers will work without any problem

scp -P 23451 /etc/test.file [email protected]:/tmp

[email protected]’s password:

test.file                             100%  983     1.0KB/s   00:00


If you need any further assistance please reach our support department.


  • 0

Install Wine on Linux Distribution

Install Wine on Linux Distribution In this tutorial, we can check how to Install Wine on Linux...

Install Apache Tomcat on Ubuntu 18.04

Install Apache Tomcat on Ubuntu 18.04 The Apache Tomcat is a free, open-source Java-based web...

How to Install and Setup Angular CLI

How to Install and Setup Angular CLIAngular is an open-source framework for your web...

How to Install Jenkins on CentOS and Ubuntu Server?

How to Install Jenkins on CentOS and Ubuntu Server? Jenkins is a free and open-source automation...

Setup ILIAS LMS on Ubuntu 18.04/16.04 with Nginx

ILIAS is an Open-Source Learning Management System. ILIAS LMS offers to develop and realizing...