Allow user to set up an SSH tunnel, but nothing else

后端 未结 10 2151
小蘑菇
小蘑菇 2020-12-22 16:47

I\'d like to allow a user to set up an SSH tunnel to a particular machine on a particular port (say, 5000), but I want to restrict this user as much as possible. (Authentica

10条回答
  •  无人及你
    2020-12-22 16:56

    See this post on authenticating public keys.

    The two main things you need to remember are:

    1. Make sure you chmod 700 ~/.ssh
    2. Append the public key block to authorized-keys

提交回复
热议问题