# Restricted Shell | Restricted commands for SSH

DevFeed: [Restricted Shell | Restricted commands for SSH](<https://devfeed.tech/articles/restricted-shell-restricted-commands-for-ssh-29876.md>)

Original publisher: [Read original article](<https://goteleport.com/blog/ssh-restricted-shells/>)

Author: info@goteleport.com (Russell Jones)

Published: 2019-03-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [Teleport](<https://devfeed.tech/sources/teleport.md>)

Topics: [ssh](<https://devfeed.tech/topics/ssh.md>), [OpenSSH](<https://devfeed.tech/topics/openssh.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Unix](<https://devfeed.tech/topics/unix.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [commands](<https://devfeed.tech/tags/commands.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [linux](<https://devfeed.tech/tags/linux.md>), [openssh](<https://devfeed.tech/tags/openssh.md>), [pii](<https://devfeed.tech/tags/pii.md>), [security](<https://devfeed.tech/tags/security.md>), [shell](<https://devfeed.tech/tags/shell.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [unix](<https://devfeed.tech/tags/unix.md>)

## AI overview

This article examines restricted shells as a way to limit SSH users to specific commands or actions. It explains what restricted shells are and discusses caveats and use cases including data-exfiltration prevention, command-execution lockdown, and compliance.

## Source excerpt

How to restrict SSH sessions to specific commands? How to have a restricted shell for some users? In this article we cover some common ways to answer these questions.