8000 Merge pull request #2043 from gekitsuu/develop · linuxadmin/salt@07fdb35 · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit 07fdb35

Browse files
committed
Merge pull request saltstack#2043 from gekitsuu/develop
Made the docstring a bit clearer about the format of the key. Commonly
2 parents 36b5f5e + a7745b4 commit 07fdb35

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

salt/modules/ssh.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,10 @@ def set_auth_key(
337337
options=[],
338338
config='.ssh/authorized_keys'):
339339
'''
340-
Add a key to the authorized_keys file
340+
Add a key to the authorized_keys file. The "key" parameter must only be the
341+
string of text that is the encoded key. If the key begins with "ssh-rsa&qu 51BA ot;
342+
or ends with user@host, remove those from the key before passing it to this
343+
function.
341344
342345
CLI Example::
343346

0 commit comments

Comments
 (0)
0