Fleet logo
Menu An icon indicating that interacting with this button will open the navigation menu.
Fleet logo An 'X' icon indicating that this can be interacted with to close the navigation menu.
Multi platform
Device management   (+ MDM) Orchestration   (+ monitoring) Software management   (+ CVEs) Integrations

Docs
Stories
News Ask around Meetups Share your story COMPANY
The handbook Testimonials

Pricing Schedule a demo
Multi platform
Device management + MDM Orchestration + monitoring Software management + CVEs, usage, app library Integrations
Docs
Stories
News Ask around Meetups Schedule a demo Share your story COMPANY The handbook Testimonials
Pricing Try it yourself

Tables

Fleet uses osquery tables to query operating system, hardware, and software data. Each table provides specific data for analysis and filtering.

macOS Apple

Linux Linux

Windows Windows

Chrome ChromeOS

{{table.title}} evented table

user_ssh_keys

click to open the table of contents
macOS logo Windows logo Linux logo

user​_ssh​_keys

Returns the private keys in the users ~/.ssh directory and whether or not they are encrypted.

Column Type Description
encrypted integer 1 if key is encrypted, 0 otherwise
key_group_name text The group of the private key. Supported for a subset of key_types implemented by OpenSSL
key_length integer The cryptographic length of the cryptosystem to which the private key belongs, in bits. Definition of cryptographic length is specific to cryptosystem. -1 if unavailable
key_security_bits integer The number of security bits of the private key, bits of security as defined in NIST SP800-57. -1 if unavailable
key_type text The type of the private key. One of [rsa, dsa, dh, ec, hmac, cmac], or the empty string.
path text Path to key file
pid_with_namespace integer Pids that contain a namespace
Only available on Linux
uid bigint The local user that owns the key file

Example

SELECT * FROM users CROSS JOIN user_ssh_keys USING (uid);

Identify SSH keys stored in clear text in user directories

SELECT * FROM users JOIN user_ssh_keys USING (uid) WHERE encrypted = 0;

Notes

Querying this table requires joining against the users table. Learn more

Edit page

Questions?

Ask us anything
{{table.title}} evented table
Fleet logo
Multi platform Device management Orchestration Software management Integrations Pricing
Documentation Support Docs API Release notes Get your license
Company About News Jobs Logos/artwork Why open source?
ISO 27001 coming soon a small checkmarkSOC2 Type 2 Creative Commons Licence CC BY-SA 4.0
© 2025 Fleet Inc. Privacy
Slack logo GitHub logo LinkedIn logo X (Twitter) logo Youtube logo Mastadon logo
Tried Fleet yet?

Get started with Fleet

Start
continue
×