Very new to AWS/Cloud computing, so bear please with me here. I’ve launched an EC2 instance in the AWS management console, and I’m trying to connect to the instance via the “terminal” app on my Mac. I tried chmod 400 “my key pair”. pem command but keep receiving No such file or directory as a response. Curious to find out what I’m doing wrong in making my key publicly viewable.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
You can make sure that you’re giving the full path to the ssh-key file or navigating to the .ssh directory when executing the chmod command.
The keys are usually in the ~/.ssh directory but you can double-check the path and then execute chmod 400 /full/path
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.