{
    "content": "<h1>SSH-Keys<\/h1><p><a href=\"..\/SSH-Keys\/\">SSH-Keys<\/a> are an access credential used in the <a href=\"..\/Secure-Shell\/\">Secure Shell<\/a> protocol. They serve as a cryptographic alternative to traditional password-based authentication, providing a more secure and scalable method for identifying users and automated processes. This system is built upon <a href=\"..\/Public-Key-Cryptography\/\">Public-Key Cryptography<\/a>, which uses a pair of mathematically linked keys.<\/p><p>An <a href=\"..\/SSH-Key-Pair\/\">SSH-Key Pair<\/a> consists of a <a href=\"..\/Public-Key\/\">Public Key<\/a> and a <a href=\"..\/Private-Key\/\">Private Key<\/a>. The public key is placed on the <a href=\"..\/Remote-Server\/\">Remote Server<\/a>, typically within the <code>authorized_keys<\/code> file, while the private key is kept strictly confidential on the user's local machine. During the authentication handshake, the server issues a challenge that can only be signed by the corresponding private key. Common algorithms used to generate these keys include <a href=\"..\/RSA\/\">RSA<\/a>, <a href=\"..\/Ed25519\/\">Ed25519<\/a>, and <a href=\"..\/ECDSA\/\">ECDSA<\/a>.<\/p><p>To create these credentials, administrators often use the <a href=\"..\/ssh-keygen\/\">ssh-keygen<\/a> utility. For improved security, private keys are frequently encrypted with a passphrase and managed via an <a href=\"..\/SSH-Agent\/\">SSH-Agent<\/a> to facilitate seamless logins without repeated manual entry. According to documentation from <a href=\"https:\/\/www.openssh.com\/\">OpenSSH<\/a> and security standards defined in <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc4252\">RFC 4252<\/a>, using keys significantly mitigates the risk of <a href=\"..\/Brute-Force-Attacks\/\">Brute-Force Attacks<\/a> compared to passwords.<\/p><ul><li><a href=\"..\/OpenSSH\/\">OpenSSH<\/a><\/li><li><a href=\"..\/Multi-Factor-Authentication\/\">Multi-Factor-Authentication<\/a><\/li><li><a href=\"..\/Identity-Access-Management\/\">Identity-Access-Management<\/a><\/li><li><a href=\"..\/Public-Key-Infrastructure\/\">Public-Key-Infrastructure<\/a><\/li><\/ul>",
    "tags": [
        "ssh",
        "security",
        "authentication",
        "cryptography",
        "linux",
        "devops",
        "networking",
        "openssh",
        "sysadmin",
        "encryption"
    ]
}