We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents db530aa + 6028fbd commit 27713dbCopy full SHA for 27713db
1 file changed
README.rst
@@ -64,12 +64,13 @@ Parsing of `authorized_keys` files:
64
65
::
66
67
+ import os
68
from sshpubkeys import AuthorizedKeysFile
- f = open("/home/username/.ssh/authorized_keys", "r")
69
+ f = open(os.environ["HOME"] + "/.ssh/authorized_keys", "r")
70
key_file = AuthorizedKeysFile(f, strict=False)
71
72
for key in key_file.keys:
- print(key.key_type, key.bits, key.comment)
73
+ print(key.key_type, key.bits, key.hash_sha512())
74
75
76
Options
0 commit comments