Cardano Testnets
  • 👋Welcome to Cardano Testnets
  • ☁️Oracle Cloud
    • 💻Provisioning your instances
    • ↔️Connecting to your instance
    • 💎Steps to harden instance
      • 👟First steps
      • 👪Create new user and remove default one
      • 🚪Change ssh port
      • 🔑Changing keys
      • ⏩Further hardening
  • 🪢Cardano node installation
Powered by GitBook
On this page
Edit on GitHub
  1. Oracle Cloud
  2. Steps to harden instance

Changing keys

Now that you have successfully connected as the new user through the new port, make a new ssh key. This should be done in a secure environment (eg air-gapped machine):

# Make a new key
ssh-keygen -b 4096 -m PEM -f <the-name-of-your-key>.pem

# Remove the public key from your system
rm <the-name-of-your-key>.pub

# Change permissions on the key
chmod 400 <the-name-of-your-key>.pem

# Read and copy the public key
ssh-keygen -y -f <the-name-of-your-key>.pem

Paste the new public key on your VM:

# From your home directory do:
nano .ssh/authorized_keys

# Paste the public key in a second line and save

Please note: check that you can connect with the new key from a second terminal window before deleting your old key

PreviousChange ssh portNextFurther hardening

Last updated 1 year ago

☁️
💎
🔑