STUDY
18
wp-singular,page-template-default,page,page-id-18,wp-custom-logo,wp-theme-bridge,wp-child-theme-bridge-child,bridge-core-3.3.3,qi-blocks-1.4,qodef-gutenberg--no-touch,qodef-qi--no-touch,qi-addons-for-elementor-1.8.9,qode-optimizer-1.0.4,qode-page-transition-enabled,ajax_fade,page_not_loaded,,qode-title-hidden,qode_grid_1300,qode-content-sidebar-responsive,qode-smooth-scroll-enabled,qode-child-theme-ver-1.0.0,qode-theme-ver-30.8.7.1,qode-theme-bridge,disabled_footer_top,qode_header_in_grid,wpb-js-composer js-comp-ver-8.4.1,vc_responsive,elementor-default,elementor-kit-51

linux/SSH - ssh no matching key exchange method found 에러 원인과 해결 방법

작성자
Ethan
작성일
2024-03-11 09:33
조회
3436
ssh ethan@192.168.0.100
Unable to negotiate with 192.168.0.100 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

원인
ssh6 까지는 제공해주던 key exchange method가 ssh7부터는 보안의 이유로 별도 옵션을 추가해주어야 함

해결 방법1
ssh에 접속할 때 key exchange method 옵션을 담아 접속한다.
ssh -oKexAlgorithms=diffie-hellman-group-exchange-sha1 ethan@192.168.0.100
(이 방법은 매 접속 시 마다 해당 옵션을 추가해줘야하기 때문에 굉장히 번거로울 수 있음)

해결 방법2
ssh config 파일에 key exchange method 옵션을 추가해준다.
sudo vim /etc/ssh/ssh_config
아래 내용 추가 후 저장(:wq)
KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1
전체 76
번호 제목 작성자 작성일 추천 조회
76
비밀글 111111
Ethan | 2025.04.24 | 추천 0 | 조회 2
Ethan 2025.04.24 0 2
75
비밀글 213421341234124
Ethan | 2025.03.21 | 추천 0 | 조회 5
Ethan 2025.03.21 0 5
74
비밀글 123123
Ethan | 2025.02.03 | 추천 0 | 조회 6
Ethan 2025.02.03 0 6
73
레이드 카드(raid card) 제조사별 상태 확인
Ethan | 2025.01.16 | 추천 0 | 조회 145
Ethan 2025.01.16 0 145
72
LINUX | MegaCli 사용법
Ethan | 2024.12.16 | 추천 0 | 조회 261
Ethan 2024.12.16 0 261
71
리눅스 명령어 모음
Ethan | 2024.10.29 | 추천 0 | 조회 389
Ethan 2024.10.29 0 389
70
리눅스 tar / tar.gz / zip 압축 및 압축 해제
Ethan | 2024.08.07 | 추천 0 | 조회 519
Ethan 2024.08.07 0 519
69
리눅스 서버 로그 확인 방법
Ethan | 2024.08.07 | 추천 0 | 조회 1318
Ethan 2024.08.07 0 1318
68
윈도우11 파일탐색기 더 많은 옵션 표시 끄기/켜기
Ethan | 2024.07.30 | 추천 0 | 조회 475
Ethan 2024.07.30 0 475
67
linux / rocky # history 조회 시 날짜 시간 표시하기
Ethan | 2024.03.20 | 추천 0 | 조회 1488
Ethan 2024.03.20 0 1488
66
geoip 국가 코드 (geoip country code)
Ethan | 2024.03.20 | 추천 0 | 조회 545
Ethan 2024.03.20 0 545
65
linux / CentOS -> Rocky8, Rocky9 네트워크 설정 변경 내용
Ethan | 2024.03.16 | 추천 0 | 조회 2268
Ethan 2024.03.16 0 2268
64
linux/SSH - ssh no matching key exchange method found 에러 원인과 해결 방법
Ethan | 2024.03.11 | 추천 0 | 조회 3436
Ethan 2024.03.11 0 3436
63
linux / Rocky 남은 용량 확인 명령어
Ethan | 2024.02.23 | 추천 1 | 조회 2148
Ethan 2024.02.23 1 2148
62
linux / Rocky8 SSH접속 허용하기
Ethan | 2024.02.23 | 추천 0 | 조회 5180
Ethan 2024.02.23 0 5180