温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.ssh.com/ssh/public-key-authentication
点击访问原文链接

What is SSH Public Key Authentication?

What is SSH Public Key Authentication? Skip to content Products Show submenu for Products Products PrivX Privileged Access and Secrets Management Privileged Access Management Secure Remote Access for OT SSH Key Manager Tectia Secure File Transfer SSH Server SSH Client SSH Server for z/OS Encryption NQX Quantum-Safe Encryption FQX File Encryptor SalaX Secure Collaboration Secure Mail Secure Messaging Solutions Show submenu for Solutions Solutions Zero Trust Zero Trust Secrets Management Secrets Management Just-in-Time / Ephemeral Access Just-in-Time / Ephemeral Access Vendor Remote Access Vendor Remote Access Operational Technology Operational Technology Audit and Compliance Audit and Compliance Quantum Readiness Quantum Readiness Identity Security Identity Security Secure Collaboration Secure Collaboration Cloud Access Management /Hybrid Cloud Cloud Access Management /Hybrid Cloud Secure File Transfer Secure File Transfer Resources Show submenu for Resources Resources Content Library Blog SSH Academy Press Releases Case Studies Report a Vulnerability Company Show submenu for Company Company About Us Partners Investors Careers Customer Support Products Show submenu for Products Products PrivX Privileged Access and Secrets Management Privileged Access Management Secure Remote Access for OT SSH Key Manager Tectia Secure File Transfer SSH Server SSH Client SSH Server for z/OS Encryption NQX Quantum-Safe Encryption FQX File Encryptor SalaX Secure Collaboration Secure Mail Secure Messaging Solutions Show submenu for Solutions Solutions Zero Trust Zero Trust Secrets Management Secrets Management Just-in-Time / Ephemeral Access Just-in-Time / Ephemeral Access Vendor Remote Access Vendor Remote Access Operational Technology Operational Technology Audit and Compliance Audit and Compliance Quantum Readiness Quantum Readiness Identity Security Identity Security Secure Collaboration Secure Collaboration Cloud Access Management /Hybrid Cloud Cloud Access Management /Hybrid Cloud Secure File Transfer Secure File Transfer Resources Show submenu for Resources Resources Content Library Blog SSH Academy Press Releases Case Studies Report a Vulnerability Company Show submenu for Company Company About Us Partners Investors Careers Customer Support Get in touch
What is SSH Public Key Authentication?

The SSH protocol supports many authentication methods. Arguably one the most important of these is Public Key authentication for interactive and automated connections.

Contents Public Key authentication - what and why? Asymmetric Cryptography - Algorithms Key Pair - Public and Private Setting Up Public Key Authentication for SSH Handling of the Private Key From Chaos to Order - SSH Key Management Public Key authentication - what and why?

The motivation for using public key authentication over simple passwords is security. Public key authentication provides cryptographic strength that even extremely long passwords can not offer. With SSH, public key authentication improves security considerably as it frees the users from remembering complicated passwords (or worse yet, writing them down).

In addition to security public key authentication also offers usability benefits - it allows users to implement single sign-on across the SSH servers they connect to. Public key authentication also allows automated, passwordless login that is a key enabler for the countless secure automation processes that execute within enterprise networks globally.

Public key cryptography revolves around a couple of key concepts. The sections below explain these briefly.

Asymmetric Cryptography - Algorithms

As with any encryption scheme, public key authentication is based on an algorithm. There are several well-researched, secure, and trustworthy algorithms out there - the most common being the likes of RSA and DSA. Unlike the commonly known (symmetric or secret-key) encryption algorithms the public key encryption algorithms work with two separate keys. These two keys form a pair that is specific to each user.

Key Pair - Public and Private

In the SSH public key authentication use case, it is rather typical that the users create (i.e. provision) the key pair for themselves. SSH implementations include easily usable utilities for this (for more information see ssh-keygen and ssh-copy-id).

Each SSH key pair includes two keys:

A public key that is copied to the SSH server(s). Anyone with a copy of the public key can encrypt data which can then only be read by the person who holds the corresponding private key. Once an SSH server receives a public key from a user and considers the key trustworthy, the server marks the key as authorized in its authorized_keys file. Such keys are called authorized keys.

A private key that remains (only) with the user. The possession of this key is proof of the user's identity. Only a user in possession of a private key that corresponds to the public key at the server will be able to authenticate successfully. The private keys need to be stored and handled carefully, and no copies of the private key should be distributed. The private keys used for user authentication are called identity keys.

Setting Up Public Key Authentication for SSH

The following simple steps are required to set up public key authentication (for SSH):

Key pair is created (typically by the user). This is typically done with ssh-keygen.

Private key stays with the user (and only there), while the public key is sent to the server. Typically with the ssh-copy-id utility.

Server stores the public key (and "marks" it as authorized).

Server will now allow access to anyone who can prove they have the corresponding private key.

Handling of the Private Key

It is extremely important that the privacy of the private key is guarded carefully. For most user-driven use cases this is accomplished by encrypting the private key with a passphrase.

When a private key is needed the user is asked to supply the passphrase so that the private key can be decrypted. The handling of passphrases can be automated with an SSH agent.

In most automated use cases (scripts, applications, etc) the private keys are not protected and careful planning and key management practises need to be excercised to remain secure and compliant with regulatory mandates.

From Chaos to Order - SSH Key Management

In environments where users are free to self-provision authentication keys it is common that over the years the numbers of provisioned and deployed keys grow very large. Since there is no way to find out who owns or has originally provisioned a given public key found on a server, and since these keys never expire, the true state of access control in large unmanaged environments can be very unclear or outright chaotic.

Managing and controlling access to servers and other IT infrastructure is a legal requirement for any enterprise that operates on regulated markets such as finance, energy, healthcare, or commerce. These enterprises need to employ solutions for SSH key management to control the access granted by SSH keys.

Solutions Zero Trust Secrets Management Just-in-Time/ Ephemeral Access Vendor Remote Access Operational Technology Audit and Compliance Quantum Readiness Identity Security Cloud Access Management/Hybrid Cloud Secure Collaboration Secure File Transfer Industries Healthcare Government MSPs Products PrivX Privileged Access and Secrets Management Privileged Access Management (PAM) Secure Remote Access for OT SSH Key Management Encryption NQX Quantum-Safe Encryption FQX File Encryption Tectia Secure File Transfer SSH Server SSH Client SSH Server for z/OS SalaX Secure Collaboration Secure Mail Secure Messaging Company About Us Partners Investors Careers Resources Talk to a security expert Support Product documentation Contact Us

Privacy Policy  |  Terms and Conditions

2026 © Copyright SSH

Secure 365

What is SSH Public Key Authentication?,AI智能索引,全网链接索引,智能导航,网页索引

    With SSH, public key authentication improves security considerably as it frees the users from remembering complicated passwords.