question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What do you think about the idea of a SSH client audit feature?

Of course, admins can configure a good and up-to-date system-wide client config (/etc/ssh/ssh_config). However, users also have their own (and often ancient!) settings in ~/.ssh/config. AFAIK there is no tool that audits the client settings and gives recommendations.

When I discovered the ssh -G host option (available since OpenSSH 6.8) I thought this may be an interesting and easy way to audit the effective client settings for the respective destination.

Also, it would be possible to not only check the configured algorithms but also insecure or dangerous features (e.g. X11Forwarding, Agent-Forwarding, etc).

It could look like this:

$ ssh-audit -c host

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
jtestacommented, Nov 14, 2019

@knweiss @egberts I implemented SSH client testing in v2.1.0 of my fork: https://github.com/jtesta/ssh-audit/releases/tag/v2.1.0

1reaction
knweisscommented, Oct 17, 2016

Or checking the (new) storage format of the private key (bcrypt KDF and number of rounds) or the public key (RFC 4716).

Or warning about the key age and hinting about key rotation if the local private key file has an old timestamp.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jtesta/ssh-audit: SSH server & client auditing (banner ... - GitHub
ssh -audit is a tool for ssh server & client configuration auditing. jtesta/ssh-audit (v2.0+) is the updated and maintained version of ssh-audit forked...
Read more >
How to audit SSH server and client config on Linux/Unix
What is the ssh-audit tool? · Scan for OpenSSH server and client config for security issues · Make sure the correct and recommended...
Read more >
How to use SSH Audit Logging
For audit logging for SSH to be effective, you can assign each user a unique login. This approach enables you to track user...
Read more >
SSH Configuration Auditor
This free tool audits the configuration of an SSH server or client and highlights the areas needing improvement. Too many admins overlook SSH...
Read more >
SSH Audit Made Simple - StrongDM
SSH audit logs allow you to determine, either retroactively or in real-time, when an unauthorized or destructive action was taken, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found