2016-12-04 2 views
2

원격 EC2 인스턴스에서 rsub을 사용하려고합니다.Amazon EC2에서 원격 포트 전달에 실패했습니다

경고 :

나는 그러나 나는 성공적으로 내가 환영 오류를 얻을 인스턴스에 연결할 때

ssh -i keyPair.pem -R 52698:localhost:52698 [email protected] 

를 사용하여 연결할 포트 52698

을 듣고 원격 포트 포워딩 실패

rsub의 목표는 ssh를 통해 원격 파일을 편집 할 수있는 터널을 설정하는 것입니다 내 GUI에서.

이 오류에 도움이 되셨다면 언제든지 환영합니다!

자세한 오류 (-v)입니다 : 당신은 기본적으로 동일 하나 두 개의 서로 다른 포트 포워딩 (localhost127.0.0.1)를 열려고하는 것처럼

OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 
debug1: Reading configuration data /Users/victor/.ssh/config 
debug1: /Users/victor/.ssh/config line 1: Applying options for * 
debug1: Reading configuration data /etc/ssh_config 
debug1: /etc/ssh_config line 20: Applying options for * 
debug1: /etc/ssh_config line 102: Applying options for * 
debug1: Connecting to ec2-52-53-211-179.us-west-1.compute.amazonaws.com [52.53.211.179] port 22. 
debug1: Connection established. 
debug1: identity file /Users/victor/vict0rsch.pem type -1 
debug1: identity file /Users/victor/vict0rsch.pem-cert type -1 
debug1: Enabling compatibility mode for protocol 2.0 
debug1: Local version string SSH-2.0-OpenSSH_6.2 
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.1 
debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.1 pat OpenSSH* 
debug1: SSH2_MSG_KEXINIT sent 
debug1: SSH2_MSG_KEXINIT received 
debug1: kex: server->client aes128-ctr [email protected] none 
debug1: kex: client->server aes128-ctr [email protected] none 
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<2048<8192) sent 
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP 
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent 
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY 
debug1: Server host key: RSA a5:e2:ba:33:0a:6a:4b:55:5e:62:8f:1d:d9:bd:eb:9a 
debug1: Host 'ec2-52-53-211-179.us-west-1.compute.amazonaws.com' is known and matches the RSA host key. 
debug1: Found key in /Users/victor/.ssh/known_hosts:23 
debug1: ssh_rsa_verify: signature correct 
debug1: SSH2_MSG_NEWKEYS sent 
debug1: expecting SSH2_MSG_NEWKEYS 
debug1: SSH2_MSG_NEWKEYS received 
debug1: Roaming not allowed by server 
debug1: SSH2_MSG_SERVICE_REQUEST sent 
debug1: SSH2_MSG_SERVICE_ACCEPT received 
debug1: Authentications that can continue: publickey 
debug1: Next authentication method: publickey 
debug1: Offering RSA public key: /Users/victor/.ssh/id_rsa 
debug1: Authentications that can continue: publickey 
debug1: Offering RSA public key: /Users/victor/.ssh/ec2_CS224D_1.pem 
debug1: Server accepts key: pkalg ssh-rsa blen 279 
debug1: Authentication succeeded (publickey). 
Authenticated to ec2-52-53-211-179.us-west-1.compute.amazonaws.com ([52.53.211.179]:22). 
debug1: Remote connections from LOCALHOST:52698 forwarded to local address localhost:52698 
debug1: Remote connections from LOCALHOST:52698 forwarded to local address 127.0.0.1:52698 
debug1: channel 0: new [client-session] 
debug1: Requesting [email protected] 
debug1: Entering interactive session. 
debug1: client_input_global_request: rtype [email protected] want_reply 0 
debug1: remote forward success for: listen 52698, connect localhost:52698 
debug1: remote forward failure for: listen 52698, connect 127.0.0.1:52698 
Warning: remote port forwarding failed for listen port 52698 
debug1: All remote forwarding requests processed 
debug1: Sending environment. 
+0

@ 10b0 중요하지 않습니다. 포트는 localhost에만 있고 출구는 SSH 트래픽에 "동봉"되어 있습니다. – Jakuje

답변

1
debug1: remote forward success for: listen 52698, connect localhost:52698 
debug1: remote forward failure for: listen 52698, connect 127.0.0.1:52698 
Warning: remote port forwarding failed for listen port 52698 

것 같습니다. ~/.ssh/config에도 전달을 설정 했습니까? -vvv으로 실행하면 자세한 정보가 표시 될 수 있습니다.

AllowTcpForwardingsshd_config에 사용하여 서버에서 비활성화 할 수도 있습니다.

+0

참으로 나는 이것에 대해 잊어 버렸고, 나는 ~/.ssh/config에도 설정했다. 건배 – ted

관련 문제