• 돌아가기
  • 아래로
  • 위로
  • 목록
  • 댓글
질문

ssh 연결이 자꾸 끊어집니다.

올리고당 492

2

3

21.PNG.jpg

exsi에 헤놀로지 하나와 centos7을 2개를 올려 사용중입니다.

 

1. 헤놀로지에는 10.10.10.6

 

2. centos7(web) : 10.10.10.7

 

3. centos7(apache) : 10.10.10.8의 아이피를 셋팅하고 사용중입니다.

 

헤놀로지는 특별히 ssh를 들어갈 일이 없고, 2번 서버를 ssh 포트를 20022번으로 셋팅하고 아주 잘 사용하고 있습니다. 

(방화벽및 semanage의 포트 변경)

 

그런데 3번 서버의 경우 ssh를 20023번으로 셋팅 후, 2번 서버와 동일한 방화벽 작업 후에 처음에 연결이 된 후

끊어집니다.

 

그리고 계속 거절이 나오다가 다시 들어갈 수 있는 로그인 창이 뜬 후 로그인을 하면 다시 끊깁니다.

 

두 서버의 id와 비번은 동일합니다. 근데 이게 문제이진 않을텐데.....

 

캡처.PNG.jpg

골방개발자님 C:\Users\user>ssh soojin@10.10.10.8 -p 20023 -v
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: Connecting to 10.10.10.8 [10.10.10.8] port 20023.
debug1: Connection established.
debug1: identity file C:\\Users\\user/.ssh/id_rsa type -1
debug1: identity file C:\\Users\\user/.ssh/id_rsa-cert type -1
debug1: identity file C:\\Users\\user/.ssh/id_dsa type -1
debug1: identity file C:\\Users\\user/.ssh/id_dsa-cert type -1
debug1: identity file C:\\Users\\user/.ssh/id_ecdsa type -1
debug1: identity file C:\\Users\\user/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\\Users\\user/.ssh/id_ed25519 type -1
debug1: identity file C:\\Users\\user/.ssh/id_ed25519-cert type -1
debug1: identity file C:\\Users\\user/.ssh/id_xmss type -1
debug1: identity file C:\\Users\\user/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: match: OpenSSH_7.4 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002
debug1: Authenticating to 10.10.10.8:20023 as 'soojin'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:ypXlNaOqXOzCtkRm2wfv/FAbJ6ZiMhnwrmKHhox04bg
debug1: Host '[10.10.10.8]:20023' is known and matches the ECDSA host key.
debug1: Found key in C:\\Users\\user/.ssh/known_hosts:1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug1: Will attempt key: C:\\Users\\user/.ssh/id_rsa
debug1: Will attempt key: C:\\Users\\user/.ssh/id_dsa
debug1: Will attempt key: C:\\Users\\user/.ssh/id_ecdsa
debug1: Will attempt key: C:\\Users\\user/.ssh/id_ed25519
debug1: Will attempt key: C:\\Users\\user/.ssh/id_xmss
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Trying private key: C:\\Users\\user/.ssh/id_rsa
debug1: Trying private key: C:\\Users\\user/.ssh/id_dsa
debug1: Trying private key: C:\\Users\\user/.ssh/id_ecdsa
debug1: Trying private key: C:\\Users\\user/.ssh/id_ed25519
debug1: Trying private key: C:\\Users\\user/.ssh/id_xmss
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: No such file or directory
soojin@10.10.10.8's password:
Connection reset by 10.10.10.8 port 20023

신고공유스크랩
3
profile image 1등
달소 2021.07.05. 20:10

https://ostechnix.com/fix-ecdsa-host-key-warning-error-arch-linux/

이거보고 한번 조치해보시겠어요? 캐시된 키값이 있는거같습니다

올리고당 글쓴이 2021.07.06. 09:28
달소

감사합니다. 알려주신 방법으로는 해봤는데 똑같네요 ㅎㅎ 리눅스 한 8번 지우고 다시깔고 반복해서 해결했습니다. 설치시 ip를 고정으로 바꾸고 dns까지 내부 아이피로 잡으니 되네요. 근데 이 방법이 맞는지는.....

 

댓글 쓰기 권한이 없습니다. 로그인

취소 댓글 등록

cmt alert

신고

"님의 댓글"

이 댓글을 신고하시겠습니까?

댓글 삭제

"님의 댓글"

삭제하시겠습니까?


목록

공유

facebooktwitterpinterestbandkakao story
번호 분류 제목 글쓴이 날짜 조회 추천
잡담 iventoy pxe는 속도가 엄청 느리군요.. nohdd는 왜 빠르지.. 음... purndal 1일 전00:52 137 +2
잡담 proxmox로 갈아탔습니다 7 기현 2일 전07:34 411 +2
잡담 Immich가 FUTO에 합류했습니다.(Immich 핵심 팀은 정규직으로 근무합니다.) 4 달소 3일 전11:38 307 +1
3899
image
달소 21.06.22.13:19 19483 0
3898
image
달소 22.03.17.22:09 19071 +14
3897
image
달소 20.12.25.17:18 16227 +5
3896
image
달소 23.01.27.14:15 16146 +8
3895
image
달소 21.01.02.13:32 8168 0
3894
image
달소 21.04.28.14:05 8125 +6
3893
image
똥쓰똥쓰 22.09.24.16:54 8013 +3
3892 정보
image
달소 21.05.06.11:38 7928 +4
3891
image
달소 21.02.26.15:02 7680 +1
3890
image
달소 21.07.30.17:12 7081 +4
3889
image
달소 22.03.17.23:40 7075 +2
3888 정보
image
달소 21.06.11.13:24 6949 +4
3887 질문
image
달소 21.04.23.12:51 6127 +3
3886
image
ExpBox 22.04.16.23:19 5914 +4
3885 정보
image
달소 22.05.06.13:12 5887 +3
3884
image
에프킬라 22.04.19.22:08 5881 +6
3883
image
달소 21.07.30.11:40 5743 +1
3882 정보
image
달소 21.10.21.17:59 5606 +3
3881
image
달소 23.04.09.14:13 5194 +4
3880
image
달소 22.03.17.22:25 5092 +10