Skip to content

✨ Implement sshctl key list command #21

@AndreLeclercq

Description

@AndreLeclercq

Goal

List all SSH keys in the user's ~/.ssh directory.

Command

sshctl key list

Features

  • Scan ~/.ssh/ for SSH key pairs
  • Detect key types (Ed25519, RSA, ECDSA) from public key
  • Handle empty directory with helpful message
  • Flag orphaned keys (missing .pub file)

Example Output

  $ sshctl key list
  github-personal   Ed25519    ~/.ssh/github-personal
  id_rsa            RSA-2048   ~/.ssh/id_rsa
  work-server       RSA-4096   ~/.ssh/work-server (missing .pub file)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions