LoginSignup
8
6

More than 5 years have passed since last update.

AWSにSSH接続した際のwarning: setlocale: LC_CTYPE: cannot change locale (UTF-8)

Last updated at Posted at 2017-11-15

状況

AWSでRubyOnRails環境を構築中。
こちらのページを参考に、作成したユーザでログインを計る。

configを次のように書き換え、

config
Host first_aws
  Hostname 54.64.22.197 #自分の設定に合わせて
  Port 22
  User shizuma #先ほどのユーザー名
  IdentityFile ~/.ssh/first_aws_rsa #秘密鍵の設定

SSHログイン。
[~]$ ssh first_aws

ここで、以下のエラー文。
warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

解決策

TerminalのPreferences/Profiles/Advancedにある

  • set locale variables automatically

こちらのチェックボックスを外す。再起動後にwarningが消えた。

8
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
6