Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

add .ssh parsing #166

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

add .ssh parsing #166

wants to merge 5 commits into from

Conversation

robwinchester3
Copy link

resubmitting due to travis issue previously

@piax93 piax93 self-requested a review April 8, 2019 14:12
Copy link
Contributor

@piax93 piax93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, sorry for the delay in reviewing the change, we missed the email notification. I added a comment to your code.

line.strip('/n')
line = line.split()
entry = {}
entry['key_type'] = line[0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

authorized_keys files can have more complicated formats (see this specs) so better parsing than that would be required. That said, this tools is principally aimed at client machines, which (in most case) won't have SSH servers running on them, so you could just collect the known_hosts

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants