Under linux terminal quickly log in through certificates, private keys

 

  • ssh -i your certificate root @IP address -p port number
  • SSH - I {full path to your file .pem EC2-User @} {} IP address Examples
  • sudo ssh -i /home/aaa [email protected]
  • -i followed by key address
  • For convenience, the following may be added to the ~ / .bashrc
  • alias AAA='sudo ssh -i /home/aaa [email protected]'
  • AAA is himself the alias after
  • source ~/.bashrc
  • Since it can connect directly with the AAA



 

Guess you like

Origin www.cnblogs.com/landv/p/11204637.html