SSH Key Utilities¶
Tools for generating, inspecting, converting, and managing SSH keys — both at the SCDF and on your local machine.
SCDF useraccount portal¶
To view, add, or delete SSH keys associated with your SCDF account, visit https://useraccount.sdcc.bnl.gov/ssh-key.
- Up to 5 keys per account, each added and deleted individually.
- Ed25519 only (
ssh-ed25519and the hardware-token formsk-ssh-ed25519@openssh.com). RSA, DSA and ECDSA keys are refused on upload. Existing RSA keys keep working, are marked Deprecated in the list, and can still be deleted. - Adding a key needs the public key text and its fingerprint; the portal recomputes the fingerprint and rejects a mismatch. See Generate SSH Key Pairs.
Only public keys are stored server-side. Private keys must remain on your local system.
Local utilities¶
The following commands ship with OpenSSH and are available on Linux, macOS, and Windows (via OpenSSH for Windows, WSL, or Git Bash).
ssh-keygen — generate and inspect keys¶
Generate a new Ed25519 key pair (recommended):
Generate an RSA key pair (4096-bit, for compatibility with older servers elsewhere; not accepted by the SCDF portal):
Display the fingerprint of a public key:
Change the passphrase on an existing private key:
Convert a PuTTY-format key (.ppk) to OpenSSH format — see Generate SSH Key Pairs for the full PuTTY workflow.
ssh-add — manage the SSH agent¶
Add a key to the running agent:
List keys currently loaded in the agent:
Remove all keys from the agent:
See SSH Agent for configuring agent forwarding through SCDF gateways.
ssh-copy-id — upload your public key to a remote host¶
Appends your public key to ~/.ssh/authorized_keys on the remote host. Note: to authorize a key for SCDF access, use the useraccount portal instead — editing authorized_keys directly on SCDF systems is not supported.
ssh-keyscan — retrieve a host's public key¶
Useful for pre-populating ~/.ssh/known_hosts to avoid interactive fingerprint prompts:
Always verify the retrieved fingerprint against a trusted source before trusting the key.