课程: Learning SSH

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Creating a key pair with ssh-keygen

Creating a key pair with ssh-keygen - SSH教程

课程: Learning SSH

Creating a key pair with ssh-keygen

- [Instructor] Open SSH allows us to use cryptographic key pairs to authenticate to a server instead of using text passwords. Key pairs are files that represent a private key and a public key. A public key can be used to encrypt information that only the matching private key can decrypt. While key pairs are often used to encrypt and decrypt messages between two different people, we can use the same components to authenticate with an SSH server. When we connect to an SSH server using a key, the server will encrypt messages to us using our public key and will also receive the server's public key to encrypt communications going back to it. Using keys with SSH is a recommended best practice because they tend to offer a higher level of security than just a text password or passphrase. They can also make connecting to a server easier because a private key file takes the place of a password. So we can use this method to connect to a…

内容