Setting Up SSH Keys¶
Follow the steps below to set up SSH keys:
1. Create the .ssh
Directory¶
2. Generate an SSH Key Pair¶
3. Add the Public Key to authorized_keys
¶
You can use one of the following methods:
Method 1: Append the Key¶
Method 2: Echo the Key¶
Replace YOUR_PUBLIC_KEY
with your actual public key:
4. Set Permissions¶
5. Install putty-tools
¶
6. Convert the Private Key to PPK Format¶
puttygen ~/pcmagik-zurich-arm-docker-pcmagik-com -o ~/.ssh/pcmagik-zurich-arm-docker-gronioss-pamagik-com.ppk
7. Copy Keys to the ubuntu
User's Home Directory¶
sudo cp pcmagik-zurich-arm-docker-pcmagik-com /home/ubuntu/
sudo cp pcmagik-zurich-arm-docker-pcmagik-com.pub /home/ubuntu/