# RHEL환경에서 ssh 접속시 locale warning 메시지 출력시 조치사항

<table border="1" id="bkmrk-perplexity%EC%97%90%EC%84%9C-%EC%83%9D%EC%84%B1%ED%95%9C-ai%EC%9D%B4" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 99.881%;"></col></colgroup><tbody><tr><td>[![image.png](http://igoni.kr/uploads/images/gallery/2026-02/scaled-1680-/qyFimage.png)](http://igoni.kr/uploads/images/gallery/2026-02/qyFimage.png)

</td></tr><tr><td class="align-right">perplexity에서 생성한 AI이미지</td></tr></tbody></table>

1. RHEL8 버전에서 ssh접속시 아래내용으로 setlocale 메시지가 출력하는 경우 해당서버에 필요한 언어팩이 없어서 발생한 것.   
    ```shell
    Last login: Tue Sep 28 15:36:49 2021 from 192.168.0.10
    -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
    /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
    /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
    /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)
    ```
2. 조치사항  
    ```shell
    $> yum install glibc-langpack-en -y
    Failed to set locale, defaulting to C.UTF-8
    Last metadata expiration check: 1:14:53 ago on Tue Sep 28 14:35:14 2021.
    Dependencies resolved.
    ===========================================================================================================================================================================================================
     Package                                                Architecture                                Version                                              Repository                                   Size
    ===========================================================================================================================================================================================================
    Installing:
     glibc-langpack-en                                      x86_64                                      2.28-151.el8                                         baseos                                      825 k
    
    Transaction Summary
    ===========================================================================================================================================================================================================
    Install  1 Package
    
    Total download size: 825 k
    Installed size: 6.0 M
    Downloading Packages:
    glibc-langpack-en-2.28-151.el8.x86_64.rpm                                                                                                                                  8.0 MB/s | 825 kB     00:00
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                                                      2.2 MB/s | 825 kB     00:00
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                                                                                                                   1/1
      Installing       : glibc-langpack-en-2.28-151.el8.x86_64                                                                                                                                             1/1
      Running scriptlet: glibc-langpack-en-2.28-151.el8.x86_64                                                                                                                                             1/1
      Verifying        : glibc-langpack-en-2.28-151.el8.x86_64                                                                                                                                             1/1
    
    Installed:
      glibc-langpack-en-2.28-151.el8.x86_64
    
    Complete!
    ```