'chmod' shows error: "chmod' is not recognized as an internal or external command, operable program or batch file."

0

I'm trying to connect to an instance (or something like that) using aws's ec2 thing. I had to change the permissions of a .pem file with the command 'chmod 400 grabage' it throws an error (chmod' is not recognized as an internal or external command, operable program or batch file.) Anyone know why this is happening?

coolpigeon2122

Posted 2020-01-26T04:18:06.557

Reputation: 1

That's a Windows error message, but chmod is a Unix command, so potentially not appropriate in your exact scenario. Perhaps backing up a step is appropriate... you need to change the permissions on the private key in order to solve what problem, specifically? – Michael - sqlbot – 2020-01-26T13:41:50.527

Well, in order to connect to the ec2 instance I made, I have to change the permissions of the pem file. – coolpigeon2122 – 2020-01-26T16:24:20.233

I understand that you believe you need to change the permissions on the private key PEM file, and am aware of the circumstances (on Unix) that would require this... but am asking you to explain why you believe this is necessary on your Windows system, because it stands to reason that what you are attempting is based on an incorrect prior assumption, somewhere. What error messages and troubleshooting steps led you to the conclusion that permissions on the key file are the cause of the problem you are trying to solve? – Michael - sqlbot – 2020-01-27T00:14:14.177

No answers