How to create SSH keys in macOS and Linux |
||||
Article Number: 1421 | Rating: Unrated | Last Updated: Wed, Dec 12, 2018 at 12:57 PM
|
||||
How to create SSH keys in macOS and LinuxOverview BackgroundThis article's scope is limited to macOS and Linux. SSH keys are a means of authenticating a user to an SSH server without using a password. Each “key” is actually a key pair consisting of a public key and a private key. Keys are more secure than passwords because they are significantly more complex. While a password of eight characters is 72 bits long, SSH keys are often 2048 bits or longer. This longer string has many more possible permutations and therefore takes much more time to crack with a brute force attack. If you require SSH access for multiple users, the use of SSH keys instead of individual logins can bypass many of the headaches involved in user management without violating PCI DSS. See What are the advantages of using SSH keys to control access for multiple users? for details. MethodThe process involves generating a pair of SSH key files containing a private key and a public key. The private key is known only to the user’s computer; the public key will be known to the server. Each key is useless without the other; therefore, only individuals with both the private and the public key can gain access to the server, and the private key is never revealed to the server. Users should take special care to not lose the private key. A lost private key cannot be replicated; therefore, the user cannot access the server until an administrator generates a new key pair. If you lose access to your server due to a lost key, contact our Support Team for assistance. 1: Create and save the SSH key files
2: Transfer the public key file to the receiving server
3:Test the connection
|
||||
| ||||
Attachments
![]() There are no attachments for this article.
| ||||
How to use the Nexcess Secure Password Generator
Added on Tue, Jan 15, 2019
How to improve the security of your Magento store
Added on Wed, Dec 26, 2018
How to add SSH keys to your Nexcess Cloud account
Added on Tue, Oct 23, 2018
How to password-protect web pages with .htpasswd
Added on Wed, Dec 26, 2018
How to secure your ExpressionEngine website
Added on Mon, Jan 14, 2019
How to enable SSH access
Added on Mon, Dec 17, 2018
How to secure your WordPress site
Added on Wed, Dec 26, 2018
How to install OpenVPN
Added on Wed, Dec 26, 2018
How to view shared secure data in your Client Portal
Added on Wed, Dec 5, 2018
How to create SSH keys in Windows with PuTTY
Added on Wed, Dec 26, 2018
|
|
|