Skip to content

SSH key authentication #3

@adityapatel-sudo

Description

@adityapatel-sudo

Description:

Currently, ssh-grades only supports username/password authentication with DUO, which makes login slower and less convenient. It would be useful to allow SSH key-based authentication so users can log in with their existing SSH keys instead of typing credentials every time.

Proposed changes:

  • Add support for authenticating with a private key (via ssh2::Session::userauth_pubkey_file or some other lib)

  • Introduce a simple config file (e.g., ~/.ssh-grades/config.json) that can store location of ssh key

  • On startup, the tool should:

    1. Attempt to log in using the configured SSH key.
    2. Fall back to username/password? or maybe just fail

Benefits:

  • Faster login (skip DUO for every run).
  • Aligns with best practices for SSH authentication.
  • Reduces friction for frequent users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions