Creating Private Key and Public Key

by SlaSerX secret
GNU/Linux ◆ xterm-256color ◆ zsh 41 views

What Is ssh-keygen?

Ssh-keygen is a tool for creating new authentication key pairs for SSH. Such key pairs are used for automating logins, single sign-on, and for authenticating hosts.

SSH Keys and Public Key Authentication

The SSH protocol uses public key cryptography for authenticating hosts and users. The authentication keys, called SSH keys, are created using the keygen program.

SSH introduced public key authentication as a more secure alternative to the older .rhosts authentication. It improved security by avoiding the need to have password stored in files, and eliminated the possibility of a compromised server stealing the user’s password.

However, SSH keys are authentication credentials just like passwords. Thus, they must be managed somewhat analogously to user names and passwords. They should have a proper termination process so that keys are removed when no longer needed.

More by SlaSerX

Torrent Finder 00:31

by SlaSerX

Docker Install 02:49

by SlaSerX

Laboratory 00:09

by SlaSerX

Goaccess 00:40

by SlaSerX

See all