ls -a | grep .ssh
mkdir ~/.ssh/
touch ~/.ssh/authorized_keys
sudo nano ~/.ssh/authorized_keys
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.
Open your PowerShell and follow the steps:
ssh
ssh-keygen -b 4096
C:\Users\WINUSER/.ssh/id_rsa.pub
notepad C:\Users\WINUSER/.ssh/id_rsa.pub
=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...