SSH login using public and private keys, encryption

Опубликовано: 28 Сентябрь 2024
на канале: Become a Web Developer
1,116
3

One of the reasons one should use this method of logging into one's server is that you can set it up such that you don't need to enter your password every time. Another reason is security: this can prevent brute force attacks against your server as the root user. Here I show you how to set this up using a Mac (Macbook Air) as the client computer and I am logging into a DigitalOcean.com server/droplet. First you need to generate a key on your local client computer using this command "ssh-keygen -t rsa". Next you need to copy the key up to the server. There is a special command for that which SHOULD be available on your mac but if it is not just check back or leave a question on the comments. You do that by using the following command: ssh-copy-id [email protected].


I'm a web designer and developer in Shenzhen, and Shanghai, China:
https://www.anamericanwebdeveloper.com
Shekou and Nanshan apartments in Shenzhen for rent:
https://www.apartmentforrentinshenzhe...