VPN에있는 xxxx라고하는 서버에 액세스하고 싶습니다. VPN의 게이트웨이는 yyyy입니다. 저는 openconnect VPN 클라이언트를 사용하여 yyyy 게이트웨이에 연결하고 있으며 VPN 자격 증명을 사용하여 성공적으로 연결할 수 있습니다.
VPN에 연결 한 후 xxxx에 대한 traceroute를 ping하고 실행하는 것도 성공합니다. 이상하게도 내 사용자 이름으로 ssh를 사용하여 xxxx에 연결하려고 할 때 ssh 명령이 중단되고 암호를 묻는 메시지가 표시되지 않습니다. 다음 명령을 사용하여 연결했습니다.
ssh [email protected]
VPN 클라이언트 openconnect와 함께 Ubuntu 16.04를 사용하고 있습니다.
중요한 것을 놓치고있는 부분을 도와주세요. 미리 감사드립니다.
업데이트 -1
우분투 용 puTTY를 사용하여 해당 서버에 연결할 수 있으므로 서버가 인바운드 ssh 연결을 수락하고 있음을 의미합니다. 그러나 여전히 나를이기는 것은 명령 줄의 ssh가 여전히 서버에 연결할 수 없다는 것입니다. netcat x.x.x.x 22
VPN에 연결 한 후 실행했는데 응답은 SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
.
나는 X11 포워딩이 필요하고 ssh에서 -X 플래그를 사용하여 할 수 있기 때문에 명령 줄에서 ssh를 사용하여 연결하고 싶습니다.
또한 우분투에서 puTTY를 사용하여 X11 포워딩을 사용할 수 없습니다 (Xming 덕분에 Windows에서 쉽습니다).
업데이트 -2
ssh는 -d가 알 수없는 옵션이라는 오류를 던졌습니다. ssh와 함께 -v (verbose) 플래그를 시도했습니다. 다음은 출력입니다.
OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016 debug1: Reading configuration data /home/varshaneya/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to x.x.x.x [x.x.x.x] port 22. debug1: Connection established. debug1: key_load_public: No such file or directory debug1: identity file /home/varshaneya/.ssh/id_rsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/varshaneya/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/varshaneya/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/varshaneya/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/varshaneya/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/varshaneya/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/varshaneya/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/varshaneya/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 pat OpenSSH* compat 0x04000000 debug1: Authenticating to x.x.x.x:22 as 'user' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: [email protected] debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
그리고 그 후 .....
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다