Skip to content

Instantly share code, notes, and snippets.

@ismet55555
Last active October 30, 2020 14:44
Show Gist options
  • Save ismet55555/2328c05530b5c12b474be95e887c0c30 to your computer and use it in GitHub Desktop.
Save ismet55555/2328c05530b5c12b474be95e887c0c30 to your computer and use it in GitHub Desktop.
SSH Config Example
# =============================================
# SSH CONFIG
# =============================================
#
# The SSH config file is typically located in your home directory
# under
# <HOME DIRECTORY>/.ssh/config
#
# Make sure you give the "config" file appropriate permissions
# chmod 600 <HOME DIRECTORY>/.ssh/config
#
# Notes on SSH Public Private Keys:
# Generate SSH Key (if you don't have one):
# ssh-keygen -t rsa -C "<email here>"
# Copying Public Key to remote location that you want to have SSH access to:
# ssh-copy-id -i ~/.ssh/<name of public key> <remote user>@<remote IP>
# Ex: ssh-copy-id -i ~/.ssh/id_rsa.pub root@10.100.10.988
#
# To quickly SSH into the following machines:
# ssh <Host Name>
# Example:
# ssh atomicpi
# =============================================
# HOME / PERSONAL
# =============================================
Host atomicpi
HostName 192.168.0.23
User atomicpi
IdentityFile /home/ismet/.ssh/id_rsa
Host pi-mirror-dongle
HostName 192.168.0.6
User pi
IdentityFile /home/ismet/.ssh/id_rsa
Host pi-zero-1-DTSPO
HostName 10.10.0.178
User pi
IdentityFile /home/ismet/.ssh/id_rsa
Host pi-zero-1-TC
HostName 10.100.70.101
User pi
IdentityFile /home/ismet/.ssh/id_rsa
Host pi-3B-1-TC
HostName 10.100.70.197
User pi
IdentityFile /home/ismet/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment