-
Notifications
You must be signed in to change notification settings - Fork 221
[Feature]: Allow for setting of SSH Authorized Keys options #3180
Copy link
Copy link
Closed as not planned
Description
Problem
Related to #3176 it would be useful to be able to limit what actions can be taken on the SSH server side by being able to set options that can be used in the authorized keys file.
For example, instead of just using the public key such as
ssh-ed25519 AAAAC3NzaC1lZDI1NTEFAAABIF0WOd+BDYmgPy1x71660efXyWbycdH10ocLhjCubGHg user@host
You want to limit abilities based on authorized_keys(5) man page,
restrict,port-forwarding,pty,permitopen="localhost:3000",restrictfrom="192.168.1.0/24",command="/usr/local/bin/script.sh" ssh-ed25519 AAAAC3NzaC1lZDI1NTEFAAABIF0WOd+BDYmgPy1x71660efXyWbycdH10ocLhjCubGHg user@host
Which will allow someone to make sure it is used by authorized users and from authorized networks with the least privileges needed.
Solution
Provide an option to specify authorized key options, or update the public key to take in a whole authorized_keys file instead.
Workaround
No response
Would you like to help us implement this feature by sending a PR?
Yes
Reactions are currently unavailable