How to Install and Uninstall restricted-ssh-commands Package on Kali Linux
Last updated: November 26,2024
1. Install "restricted-ssh-commands" package
Please follow the step by step instructions below to install restricted-ssh-commands on Kali Linux
$
sudo apt update
Copied
$
sudo apt install
restricted-ssh-commands
Copied
2. Uninstall "restricted-ssh-commands" package
Learn how to uninstall restricted-ssh-commands on Kali Linux:
$
sudo apt remove
restricted-ssh-commands
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the restricted-ssh-commands package on Kali Linux
Package: restricted-ssh-commands
Version: 0.4-1
Installed-Size: 20
Maintainer: Benjamin Drung
Architecture: all
Size: 7234
SHA256: 37a4fae2ae5819251d31130d2bdb08526d9b5d41c1661d637ac7bf90f19f45e0
SHA1: a07112dd215b9e8960e4d16eb8d938e05053c67c
MD5sum: fad94c3755078dc4c623f3220f1f9527
Description: Restrict SSH users to a predefined set of commands
restricted-ssh-commands is intended to be called by SSH to restrict a
user to only run specific commands. A list of allowed regular
expressions can be configured in /etc/restricted-ssh-commands/. The
requested command has to match at least one regular expression.
Otherwise it will be rejected.
.
restricted-ssh-commands is useful to grant restricted access via SSH to
do certain task. For example, it could allow a user to upload a Debian
packages via scp and run reprepro processincoming.
.
Create a configuration file in /etc/restricted-ssh-commands/ and add
following line to ~/.ssh/authorized_keys to use it
.
command="/usr/lib/restricted-ssh-commands",no-port-forwarding,
no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa [...]
Description-md5:
Homepage: https://github.com/bdrung/restricted-ssh-commands
Section: net
Priority: optional
Filename: pool/main/r/restricted-ssh-commands/restricted-ssh-commands_0.4-1_all.deb
Version: 0.4-1
Installed-Size: 20
Maintainer: Benjamin Drung
Architecture: all
Size: 7234
SHA256: 37a4fae2ae5819251d31130d2bdb08526d9b5d41c1661d637ac7bf90f19f45e0
SHA1: a07112dd215b9e8960e4d16eb8d938e05053c67c
MD5sum: fad94c3755078dc4c623f3220f1f9527
Description: Restrict SSH users to a predefined set of commands
restricted-ssh-commands is intended to be called by SSH to restrict a
user to only run specific commands. A list of allowed regular
expressions can be configured in /etc/restricted-ssh-commands/. The
requested command has to match at least one regular expression.
Otherwise it will be rejected.
.
restricted-ssh-commands is useful to grant restricted access via SSH to
do certain task. For example, it could allow a user to upload a Debian
packages via scp and run reprepro processincoming.
.
Create a configuration file in /etc/restricted-ssh-commands/ and add
following line to ~/.ssh/authorized_keys to use it
.
command="/usr/lib/restricted-ssh-commands",no-port-forwarding,
no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa [...]
Description-md5:
Homepage: https://github.com/bdrung/restricted-ssh-commands
Section: net
Priority: optional
Filename: pool/main/r/restricted-ssh-commands/restricted-ssh-commands_0.4-1_all.deb