

ForceCommand - "Forces the execution of the command specified by ForceCommand, ignoring any command supplied by the client and ~/.ssh/rc if present.AllowAgentForwarding - Specifies whether ssh-agent(1) forwarding is permitted./etc/ssh/sshd_config - the system-wide configuration file.~/.ssh/rc - Contains initialization routines to be run before the user's home directory becomes accessible.Environment processing is disabled by default and is controlled via the PermitUserEnvironment option ~/.ssh/environment - This file is read into the environment at login (if it exists).permitopen="host:port" - Limit local 'ssh -L' port forwarding such that it may only connect to the specified host and port.no-X11-forwarding - "Forbids X11 forwarding when this key is used for authentication.".no-port-forwarding - Forbids TCP forwarding when this key is used for authentication.no-agent-forwarding - Forbids authentication agent forwarding when this key is used for authentication.

Note that this option applies to shell, command or subsystem execution. Note that the client may specify TCP and/or X11 forwarding unless they are explicitly prohibited. command="command" - The command supplied by the user (if any) is ignored.~/.ssh/authorized_keys - contains keys which are allowed to connect which can be given options:.Options for restricting SSH featuresįiles and their options that alter behavior are: On the server side, and the user terminal in the client side. In this mode, either side may sendĭata at any time, and such data is forwarded to/from the shell or command At this time the client may request things likeĪllocating a pseudo-tty, forwarding X11 connections, forwarding TCPĬonnections, or forwarding the authentication agent connection over theĪfter this, the client either requests a shell or execution of a command. If the client successfully authenticates itself, a dialog for preparing
#Secure pipes local forward vs remote forward manual

Configuring the SSH daemon (sshd) Configuring sshd TL DR - go to the bottom of the answer, "Applying the restrictions"Īdding a restricted user consists of two parts:Ģ.
