CHMOD 400 not working trying to ssh to amazon instance [closed]
By Sophia Vance
I am trying to ssh to amazon instance with my .pem file however CHMOD 400 is not working as it says “this command is not available”. It works on my mac terminal however not on my Linux Ubuntu 18.04.
1 Answer
Command names in Ubuntu are case sensitive, so CHMOD is not the same as chmod:
$ ls -l file
-rw-rw-r-- 1 dessert dessert 0 Jun 1 13:25 file
$ CHMOD 400 file
CHMOD: command not found
$ chmod 400 file
$ ls -l file
-r-------- 1 dessert dessert 0 Jun 1 13:25 fileGive lowercase chmod a try!