.pem
自分のファイルを使用して Amazon インスタンスに SSH 接続しようとしていますがCHMOD 400
、「このコマンドは使用できません」と表示され、機能しません。Mac ターミナルでは機能しますが、Linux Ubuntu 18.04 では機能しません。
答え1
Ubuntuのコマンド名は大文字と小文字を区別なので、 はCHMOD
次のものと同じではありません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 file
小文字をchmod
試してみましょう!