/notebook/ubuntu-setup/07-install-and-setup-ssh

Install and Setup SSH


Basic Steps

  1. Make a new directory for holding keys

    mkdir ~/keys
    
  2. Decrypt your current keys

    Either retrieve your keys from remote through nautilus and unencrypt or use command line

    gpg --output ~/keys/folder/key_filename1 --decrypt my/remote/filesystem/ssh/key_filename1.pgp
    
  3. Copy in your config file:

    mkdir ~/.ssh
    cp my/remote/filesystem/ssh/config ~/.ssh/config
    
  4. Set folder permissions

    chmod 700 ~/keys
    chmod 600 ~/keys/*
    chmod 644 ~/keys/*.pub
    chmod 700 ~/.ssh
    chmod 600 ~/.ssh/*
    chmod 644 ~/.ssh/*.pub
    

Other Useful commands

See SSH Reference for more info

About

I am an engineer and educator, having spent ten years as a professor. My goal is to help you build your knowledge of design and technology, get your hardware working, and propel your startup or small business. Get in touch!

Read More...