Post

Secure Shell Connection

SSH

  1. Command to connect to a target host with a specfic ssh key
    1
    
    ssh username@targethost -i <path-to-private-key>
    
  2. Update the below file to specify the parameters to be used for each target
    1
    
    sudo vi ~/.ssh/config
    
  3. To delete the saved keys of remote hosts, remove them from:
    1
    
    sudo vi ~/.ssh/known_hosts
    
This post is licensed under CC BY 4.0 by the author.