티스토리 뷰
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. |
'Network' 카테고리의 다른 글
[ssh]원격 명령 실행 시 argument 넘겨주기 (0) | 2018.11.06 |
---|---|
[SSH] 공개키 설정(authorized_keys) 후 연결되지 않을 때 (0) | 2018.11.02 |
- Total
- Today
- Yesterday
- _status
- CLion
- 물리디스크
- postgresql11
- Ignoring CMAKE_OSX_SYSROOT value
- yum
- aix ld
- Repository
- firewall-cmd service
- update
- 파티션 추가
- aix compile
- pf.anchors
- noipath
- lvremove
- CMAKE_OSX_SYSROOT
- ld 옵션
- vgcreate
- install
- linux
- 센트6
- pfctl
- virtualbox
- centos7
- fielddata
- CentOS
- mirrorlist
- physicaldisk
- lvm 늘리기
- _stats
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |