Commit f53016c3 by Scott Duckworth

give more in depth description of SSHKEY_AUTHORIZED_KEYS_COMMAND

parent 35545a9f
...@@ -19,18 +19,26 @@ In order to associate an incoming public key with a user you must define ...@@ -19,18 +19,26 @@ In order to associate an incoming public key with a user you must define
SSHKEY\_AUTHORIZED\_KEYS\_COMMAND in your project's settings.py. This should SSHKEY\_AUTHORIZED\_KEYS\_COMMAND in your project's settings.py. This should
be a string containing the command which is run after successful be a string containing the command which is run after successful
authentication, with "{username}" being replaced with the username of the user authentication, with "{username}" being replaced with the username of the user
associated with the incoming public key. associated with the incoming public key. For instance:
> SSHKEY\_AUTHORIZED\_KEYS\_COMMAND = 'my-command {username}'
will cause keys produced by the below commands to look similar to:
> command="my-command fred" ssh-rsa BLAHBLAHBLAH
assuming the key "BLAHBLAHBLAH" is owned by fred.
## URL Configuration ## URL Configuration
This text assumes that your Django project's urls.py maps sshkey.urls into the This text assumes that your Django project's urls.py maps sshkey.urls into the
url namespace as follows: url namespace as follows:
urlpatterns = patterns('', > urlpatterns = patterns('',
... > ...
url('^sshkey/', include(sshkey.urls)), > url('^sshkey/', include(sshkey.urls)),
... > ...
) > )
You will need to adjust your URLs if you use a different mapping. You will need to adjust your URLs if you use a different mapping.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment