jcadima
1/7/2020 - 6:30 PM

Multiple SSH connections


https://serverfault.com/questions/295768/how-do-i-connect-to-ssh-with-a-different-public-key

create this file in .ssh:  .ssh/config


Host host1
  HostName <hostname_or_ip>
  IdentityFile ~/.ssh/identity_file1

Host Host2
  HostName <hostname_or_ip2>
  User differentusername
  IdentityFile ~/.ssh/identity_file2