[Network Tutorial] SSH login through pem file (login with key pair)


SSH login

  • The commands we generally use to log in to the server using ssh aressh -p 端口 用户名@服务器地址
  • But in some cases we need to use 密钥对to log in (one will be used xxx.pem的文件), let's take a look at how the ssh command uses the pem file to log in

Login using pem file

  • Here we can use the command ssh -i key.pem [server] to log in
  • For example:ssh -i xiaoqiangclub.pem [email protected]

problems encountered

  • When logging in through the above command, you may encounter the following problem

Under Linux system

  • Under the Linux system, the following error may be encountered
@@@@&

Guess you like

Origin blog.csdn.net/xiaoqiangclub/article/details/125533372
Recommended