cd /etc/ssh
sudo nano sshd_config
Uncomment the following lines
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
Save & exit.
You can follow this topic also:
cd /etc/ssh
sudo nano sshd_config
Uncomment the following lines
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
Save & exit.
You can follow this topic also:
ls -a | grep .ssh
mkdir ~/.ssh/
touch ~/.ssh/authorized_keys
sudo nano ~/.ssh/authorized_keys
Step 1: Login into you AWS account and go to EC2 instances
Step 2: Select your instance and click connect
Step 2: Then click connect button at the bottom right corner
Step 3: Now a new tab will be opened with console as follows
Step 4: Copy your SSH public key then add the key to the following key file
Use this command in Mac/Windows powershell to copy your public key: pbcopy ~/.ssh/id_rsa.pub
nano ~/.ssh/authorized_keys
Step 5: Save and reboot then try to connect again with device from which public key generated.
First copy your Public key using the following command:
cat ~/.ssh/id_rsa.pub
or
pbcopy ~/.ssh/id_rsa.pub
Now login into your Droplet or VM and open the following file then paste your public key into authorized_keys file.
nano ~/.ssh/authorized_keys
Save the file and try to login from your local terminal.
=RANK(number,ref,[order]) To rank in descending order, we will use the formula =RANK(B2,($C$5:$C$10),0) If we want unique ranks, we can use...