Connecting to a server with ssh for idiots like me

Overview

  • Create a SSH key, along with a password
  • Save the SSH key to your harddrive using a name like private_key or anything
  • Change the permissions for your key using terminal.
  • Add the key to your SSH agent on your computer
  • Connect to the remote server

Create an SSH Key with a password
  • If you are using a host, they typically have a resource where you can generate SSH keys
  • Record the following after your key has been generated:
    • Hostname
    • Username
    • Password
    • Port
Save the SSH key to your harddrive
  • Save the key to your harddrive with a name like private_key or somthing you will understand
Change the permissions for your key
  • Open terminal
  • Navigate to the location of your key
  • Change the permissions of the key where private_key is replaced with the name of your key
chmod 600 private_key
Add the key to your SSH agent on your computer
  • Add the key to your SSH-agent
ssh-add private_key
Connect to the remote server
ssh {username@hostname} -p{port}