Ssh port forwarding with no shell: Difference between revisions
From Andreida
(Created page with "If you want an account where the user can connect to be able to port forward but don't want to give him a shell change the first line of authorized_keys to something like: c...") |
(No difference)
|
Latest revision as of 11:49, 16 February 2016
If you want an account where the user can connect to be able to port forward but don't want to give him a shell change the first line of authorized_keys to something like:
command="/bin/cat" ssh-rsa ...
If you change the shell in passwd, it may be that you can't connect at all.