Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
django-sshkey
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f53016c3
authored
Jun 10, 2013
by
Scott Duckworth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
give more in depth description of SSHKEY_AUTHORIZED_KEYS_COMMAND
parent
35545a9f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
README.md
+14
-6
No files found.
README.md
View file @
f53016c3
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment