Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge ssh check from v3 into master #337

Merged
merged 4 commits into from
Mar 11, 2024
Merged

Merge ssh check from v3 into master #337

merged 4 commits into from
Mar 11, 2024

Conversation

Aflynn50
Copy link
Contributor

Merge #336 into master.

Aflynn50 and others added 4 commits March 8, 2024 11:19
Patch the "getTerminal" with nil to stop the terminal of the host
machine being used by default.
Add check for new line is ssh key

The function ParseAuthorisedKey does not check for new lines in its input. The description above says the function checks "a line from an authorized key file" and the definition for an authorized key in man sshd includes the text:

    The optional comment field continues to the end of the line.
    Meaning that the comment should not wrap over lines.

A check is added for a newline in the input.
Copy link

@cderici cderici left a comment

Choose a reason for hiding this comment

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

Good to go 👍

@Aflynn50 Aflynn50 merged commit 5f18edb into master Mar 11, 2024
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants