Each line (SSH protocol 2) in authorized_keys may contain:
- An (optional) set of authorization options for the key.
- A (required) key type string: ssh-dss for a DSA key, or ssh-rsa for an RSA key.
- The (required) base64-encoded public key.
- An (optional) descriptive comment.
command="command": Specifies that the command to be executed
from="pattern-list": Specifies the permitted client name or IP address
no-port-forwarding: Forbids TCP forwarding
no-X11-forwarding: Forbids X11 forwarding
no-pty: Prevents tty allocation
The following example file specifies that:
the command "rdiff-backup --server --restrict-read-only /" to be executed if client is from the machine named "beagle" where no port, X11 forwarding is allowed. Notice that all settings are in one line.
command="rdiff-backup --server --restrict-read-only /",from="beagle",no-port-forwarding,no-X11-forwarding ssh-rsa AAAAB3.... root@beagle
No comments:
Post a Comment