Logging in to EC2 will use
ssh -i <pem flie> ec2-user@<EC2 Public DNS>
To log in. Here are two possible problems and solutions
PEM file permission problem. After typing the SSH command, the following error will be displayed
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'us.pem' are too open.
This can be solved by modifying the PEM file permissions.
chmod 600 us.pem
Request passphrase
After typing the SSH command, the system prompts as follows
Enter passphrase for key '/root/us.pem':
And no matter what text you enter, repeat the above prompt.
It was used in windows
Sublime text after opening the PEM file, copy the content to VI of Linux to generate the PEM file.
After that, we use Notepad of windows to open the PEM file, and then copy it to VI of Linux.
Read More:
- The solution of a Java exception has occurred. And error exception in thread when eclipse runs
- Solution to error opening trace file: no such file or directory (2) in Android
- [wechat Payment] use OpenSSL command to generate apicclient_ key.pem Error report URL error 58
- 【ORA】Error 1031 received logging on to the standby
- Error in header file when calling OpenGL to open obj file in vs2013: unable to open include file: “GL / glut. H”: no such file or directories
- No code, a solution to the error in the path of reading CSV file by Python: filenotfounderror: [errno 2] no such file or directory: ‘XX. CSV‘
- The solution of PDF file unable to display thumbnail in win7
- Solution of header file StdAfx. H “no such file or directory” in Visual Studio
- Error 1033 received logging on to the standby
- Solution of unable to open source file “StdAfx. H” in vs2013 / 2012
- MongoNetworkError: failed to connect to server [localhost:27017] on first connect [Error: connect EC
- XLReport / Excel 2013 Ole Error 800A03EC
- Server configuration excel export HResult: 0x800A03EC
- [Solved] Mac ES Startup Error: Exception in thread “main“ java.nio.file.NotDirectoryException
- Realize the simplest recursive call, simulate exception in thread “main” java.lang.stackoverflowerror exception
- The solution to the error of / etc / sudoers: syntax error in sudoer file under mac
- RAC Error is 16191 Error 1017 received logging on to the standby
- [Linux] e297: write error in swap file solution
- Solution of vs unable to open source file and link library file
- Solution to “550 create directory operation failed” in FTP operation file