For When You Can't Have The Real Thing
[ start | index | login ]
start > SSH Key Limiting

SSH Key Limiting

Created by dave. Last edited by dave, 10 years and 224 days ago. Viewed 2,036 times. #2
[diff] [history] [edit] [rdf]

Limiting SSH Keys

You can define keys in .ssh/authorized_keys so that when they are used, only one command is permitted to be run:

# Comments allowed at start of line
AAAAB2...19Q== command="dump /home",no-pty,no-port-forwarding ssh-dss

You can also limit the source IP for the key use and other things.

See the man page for sshd under AUTHORIZED_KEYS FILE FORMAT.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt