1. Please make a file  named ~/.ssh/config
  2. Add following content for each ssh login entry you wish to have/connect to with its relevant pvt key path
  3. # tracerr
    Host # host  to connect to
    User root # user with which ssh will login
    IdentityFile  {path of pvt key file}
  4. Try ssh and it will login  automatically without mentioning any -i switch
  5. Happy logging 🙂


How to add multiple key based login info for ssh

Leave a Reply

Your email address will not be published.