원격 서버의 SSH, SSH 프롬프트 없음

원격 서버의 SSH, SSH 프롬프트 없음

원격 PowerShell 연결에서 SSH 연결을 열려고 합니다. PC1(Windows)이 Enter-PSSession 명령을 통해 PC2(Windows)에 성공적으로 연결되었음을 의미합니다. 연결되면 PC3(RHEL)에 SSH로 연결하려고 합니다.

PC3과 PC2 간에 SSH 키 교환을 수행한 후 PC2에서 성공적으로 SSH(통과 없음)를 할 수 있습니다. 그러나 위의 시나리오를 사용하여 PC1에서 ssh를 시도하면 연결할 수 있지만 쉘 프롬프트가 표시되지 않습니다.

이미 -T 또는 -tt 플래그를 사용해 보았지만 도움이 되지 않았습니다. 또한 루트 로그인이 활성화됩니다.

또한 -vvv를 사용하여 ssh 명령을 실행하고 다음을 얻었습니다(마지막에).

원시 데이터:

Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.

PS C:\Users\ymeloch> Enter-PSSession -ComputerName 10.122.2.254 -Credential ymeloch
[10.122.2.254]: PS C:\Users\ymeloch\Documents> ssh -vvv -tt [email protected]
ssh.exe : OpenSSH_7.3p1, OpenSSL 1.0.2j  26 Sep 2016
    + CategoryInfo          : NotSpecified: (OpenSSH_7.3p1, ...2j  26 Sep 2016:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
...
...
...
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x10
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug1: tty_make_modes: no fd or tio
debug3: send packet: type 98
debug2: channel 0: request shell confirm 1
debug3: send packet: type 98
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
debug2: channel 0: read drain
debug2: channel 0: ibuf empty
debug2: channel 0: send eof
debug3: send packet: type 96
debug2: channel 0: input drain -> closed
Last login: Sun Jan 15 08:34:01 2017 from 8.20.0.207


W A R N I N G        W A R N I N G        W A R N I N G        W A R N I N G

                                LAB

W A R N I N G        W A R N I N G        W A R N I N G        W A R N I N G

관련 정보