Secure Shell Connection
SSH
- Command to connect to a target host with a specfic ssh key
1
ssh username@targethost -i <path-to-private-key>
- Update the below file to specify the parameters to be used for each target
1
sudo vi ~/.ssh/config
- 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.