[Network Tutorial] SSH login through pem file (login with key pair)
Internet
2023-08-25 19:02:07
views: null
SSH login
- The commands we generally use to log in to the server using ssh are
ssh -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
@@@@&
Origin blog.csdn.net/xiaoqiangclub/article/details/125533372