Skip to content

Commit b5460db

Browse files
Update README.md
As per discussion on https://www.reddit.com/r/Puppet/comments/14b5xrc/adding_a_comment_line_for_ssh_authorized_key/ it was felt it wasn't obvious the the name would be applied as the comment without looking through docs more. Updating example to be closer to the references example which explicitly shows this
1 parent e1e6e13 commit b5460db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ ssh_authorized_key { 'nick@magpie.example.com':
3333
}
3434
```
3535

36+
This would create a key that appears in your ~/.ssh/id_rsa.pub file like this with resource name as comment:
37+
```
38+
ssh-rsa AAAAB3Nza[...]qXfdaQ== nick@magpie.example.com
39+
```
40+
3641
To manage a known hosts file entry, use the following code:
3742

3843
```

0 commit comments

Comments
 (0)