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 162.243.46.106 # 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 :)

Team IDIFY

How to add multiple key based login info for ssh

Leave a Reply

Your email address will not be published.