[SSH] Permissions? bad permissions?
Windows 에서 개발 환경을 옮기면서 git에 연결 시 사용하는 ssh 관련 파일도 적절한 위치에 넣었는데.. sourcetree에서 push 할 때 실패해서 확인해봤더니 gitlab서버에 연결 할 때 아래 같은 내용으로 실패 중..
marcoui-iMac:~ pu$ ssh root@10.10.10.10 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/Users/pu/.ssh/id_rsa' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/Users/pu/.ssh/id_rsa": bad permissions root@10.10.10.10's password: |
위에 출력된 '/Users/pu/.ssh/id_rsa' 파일을 확인해보니.. 문제없는 것 같은데..!?(linux에선 저렇게 했던 경험이 있었다;;)
marcoui-iMac:.ssh pu$ ls -la total 24 drwxr--r-- 5 pu staff 160 1 16 19:29 . drwxr-xr-x+ 23 pu staff 736 1 16 19:30 .. -rw-r--r-- 1 pu staff 1680 1 16 18:33 id_rsa -rw-r--r-- 1 pu staff 398 1 16 19:29 id_rsa.pub -rw-r--r-- 1 pu staff 962 1 16 18:46 known_hosts |
여튼 아래와 같이 0644로 변경 해봄.. (id_rsa 파일만 권한을 변경하여도 됨)
marcoui-iMac:.ssh pu$ ls -la total 24 drwxr--r-- 5 pu staff 160 1 16 19:29 . drwxr-xr-x+ 23 pu staff 736 1 16 19:30 .. -rw------- 1 pu staff 1680 1 16 18:33 id_rsa -rw------- 1 pu staff 398 1 16 19:29 id_rsa.pub -rw------- 1 pu staff 962 1 16 18:46 known_hosts |
잘 된다 캬캬컄
marcoui-iMac:~ pu$ ssh root@10.10.10.10 PTY allocation request failed on channel 0 Welcome to GitLab, pu! Connection to 10.10.10.10 closed. |