Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

WARNING: UNPROTECTED PRIVATE KEY FILE!

sudo chmod -R 700 file_name.key
Comment

WARNING: UNPROTECTED PRIVATE KEY FILE!

sudo chmod -R 700 your-key.pem
Comment

Unprotected private key file

sudo chmod 600 ~/.ssh/<your key's name>
Comment

@ WARNING: UNPROTECTED PRIVATE KEY FILE! @

chmod 600 ~/.ssh/file.pem
Comment

Error: Unprotected private key file

Mac - [ec2-user ~]$ chmod 0400 .ssh/my_private_key.pem
Windows - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html#troubleshoot-unprotected-key
Comment

Unprotected private key file

cp <path to your key> ~/.ssh/<name of your key>
Comment

Unprotected private key file

ssh -i ~/.ssh/<name of your key> <username>@<ip address>
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu software not opening 
Shell :: powershell change hostname 
Shell :: install aws cli in ec2 centos 
Shell :: how to unzip tar file 
Shell :: how to uninstall app from terminal ubuntu 
Shell :: rename a commit pushed 
Shell :: install .deb files in terminal linux 
Shell :: git case sensitive folder 
Shell :: build-essential arch 
Shell :: kill all process that match in grep 
Shell :: install tor browser ubuntu 
Shell :: remove blender ubuntu 20.04 
Shell :: flutter doctor Xcode installation is incomplete; a full installation is necessary for iOS development. 
Shell :: set alias in ubuntu 
Shell :: bash search file in directory 
Shell :: how to add flutter packages from git 
Shell :: conda create environment without packages 
Shell :: how to make bat file delete itsself 
Shell :: How to Ignore/disable SSH Host Key Verification 
Shell :: how to open mongodb-compass 
Shell :: see what is using a port ubuntu 
Shell :: how to get list of files in zip linux 
Shell :: ping not found 
Shell :: git revert uncommitted changes 
Shell :: macos kill dns cache 
Shell :: edit sshd_config 
Shell :: linux find directores 
Shell :: installing saas in react application 
Shell :: customize dock in ubuntu 
Shell :: why i am not able to make a directory in htdocs folder in ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =