문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
linux:ssh [2019/06/10 12:29] kwon37xi |
linux:ssh [2020/02/26 10:06] kwon37xi [Private Key 생성] |
||
---|---|---|---|
줄 5: | 줄 5: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[linux: | ||
* [[linux: | * [[linux: | ||
줄 14: | 줄 15: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | |
+ | * '' | ||
+ | * [[: | ||
+ | | ||
+ | chmod 700 ~/.ssh | ||
+ | </ | ||
===== ssh-agent ===== | ===== ssh-agent ===== | ||
줄 24: | 줄 30: | ||
</ | </ | ||
* 키 등록이 안 될 경우 키 파일의 권한이 **0600**이 맞는지 확인 해 본다. | * 키 등록이 안 될 경우 키 파일의 권한이 **0600**이 맞는지 확인 해 본다. | ||
+ | |||
+ | <code sh> | ||
+ | chmod 600 ~/ | ||
+ | </ | ||
* [[https:// | * [[https:// | ||
줄 35: | 줄 45: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * 파일 권한< | ||
+ | chmod 600 ~/ | ||
+ | </ | ||
* '' | * '' | ||
# 기본형태. ~/ | # 기본형태. ~/ | ||
줄 40: | 줄 53: | ||
HostName IP 혹은 hostname | HostName IP 혹은 hostname | ||
User 계정명 | User 계정명 | ||
+ | IdentitiesOnly yes | ||
# 특정 key 지정 | # 특정 key 지정 | ||
줄 47: | 줄 61: | ||
PreferredAuthentications publickey | PreferredAuthentications publickey | ||
IdentityFile ~/ | IdentityFile ~/ | ||
+ | IdentitiesOnly yes | ||
# github.com git 계정 접속시에 대한 처리 | # github.com git 계정 접속시에 대한 처리 | ||
Host github.com | Host github.com | ||
+ | HostName github.com | ||
User git | User git | ||
IdentityFile ~/ | IdentityFile ~/ | ||
+ | IdentitiesOnly yes | ||
| | ||
# 동일 2차 도메인 사용시 | # 동일 2차 도메인 사용시 | ||
줄 58: | 줄 75: | ||
PreferredAuthentications publickey | PreferredAuthentications publickey | ||
IdentityFile ~/ | IdentityFile ~/ | ||
+ | IdentitiesOnly yes | ||
</ | </ | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
===== 접속 유지 Keep connection ===== | ===== 접속 유지 Keep connection ===== | ||
줄 139: | 줄 160: | ||
</ | </ | ||
+ | ===== no matching cipher found. ===== | ||
+ | 아래와 같은 오류 발생시.. | ||
+ | |||
+ | >> no matching cipher found. Their offer: aes128-cbc, | ||
+ | |||
+ | '' | ||
+ | < | ||
+ | Ciphers aes128-cbc, | ||
+ | # 필요한 경우 | ||
+ | KexAlgorithms +diffie-hellman-group1-sha1 | ||
+ | </ | ||
+ | |||
+ | 혹은 명령행에 암호화 방식을 '' | ||
+ | |||
+ | <code sh> | ||
+ | ssh -c aes128-cbc kwon37xi@xxx.xx.xx.xx | ||
+ | </ | ||