문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
linux:ssh [2020/02/26 10:06] kwon37xi [Private Key 생성] |
linux:ssh [2021/04/13 22:34] kwon37xi |
||
---|---|---|---|
줄 5: | 줄 5: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[linux: | ||
* [[linux: | * [[linux: | ||
* [[linux: | * [[linux: | ||
줄 10: | 줄 11: | ||
===== Private Key 생성 ===== | ===== Private Key 생성 ===== | ||
<code sh> | <code sh> | ||
- | ssh-keygen -t rsa | + | ssh-keygen -t rsa -b 4096 -m pem -C " |
</ | </ | ||
* Passphrase를 항상 넣는 것이 좋다. | * Passphrase를 항상 넣는 것이 좋다. | ||
줄 16: | 줄 17: | ||
* '' | * '' | ||
* [[git: | * [[git: | ||
- | * '' | + | * '' |
* [[: | * [[: | ||
* '' | * '' | ||
줄 80: | 줄 81: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * '' | ||
+ | * [[https:// | ||
+ | * '' | ||
+ | </ | ||
===== 접속 유지 Keep connection ===== | ===== 접속 유지 Keep connection ===== | ||
줄 165: | 줄 170: | ||
>> no matching cipher found. Their offer: aes128-cbc, | >> no matching cipher found. Their offer: aes128-cbc, | ||
- | '' | + | 혹은 |
+ | >> no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1, | ||
+ | |||
+ | |||
+ | '' | ||
< | < | ||
Ciphers aes128-cbc, | Ciphers aes128-cbc, | ||
# 필요한 경우 | # 필요한 경우 | ||
KexAlgorithms +diffie-hellman-group1-sha1 | KexAlgorithms +diffie-hellman-group1-sha1 | ||
+ | |||
+ | # Host 를 명시해서 설정하는게 나음 | ||
+ | Host 123.123.123.123 | ||
+ | KexAlgorithms +diffie-hellman-group1-sha1 | ||
</ | </ | ||
줄 177: | 줄 190: | ||
ssh -c aes128-cbc kwon37xi@xxx.xx.xx.xx | ssh -c aes128-cbc kwon37xi@xxx.xx.xx.xx | ||
</ | </ | ||
+ | |||
+ | ===== SSH Pipe ===== | ||
+ | * [[https:// | ||