다음 질문이 있습니다.
유효한 자세한 x11 전달 요청은 다음과 같습니다.
remote server release: Red Hat Linux release 6.2 (Zoot)
sh-4.1$ ssh -1 -vvv -l username -o "ForwardX11 yes" server.name netscape
OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011
debug2: ssh_connect: needpriv 0
debug1: Connecting to server.name [192.131.79.70] port 22.
debug1: Connection established.
debug1: identity file /home/username/.ssh/identity type 0
debug1: identity file /home/username/.ssh/identity-cert type -1
debug1: Remote protocol version 1.5, remote software version 1.2.26
debug1: no match: 1.2.26
debug1: Local version string SSH-1.5-OpenSSH_5.8
debug2: fd 3 setting O_NONBLOCK
debug1: Waiting for server public key.
debug1: Received server public key (768 bits) and host key (1024 bits).
debug1: Server host key: RSA1 0d:02:ad:64:5f:af:fa:e1:c6:ae:50:1a:91:7e:ab:f9
debug3: load_hostkeys: loading entries for host "server.name" from file "/home/shayre/.ssh/known_hosts"
debug2: key_type_from_name: unknown key type '1024'
debug3: key_read: missing keytype
debug3: load_hostkeys: found key type RSA1 in file /home/username/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug3: load_hostkeys: loading entries for host "192.131.79.70" from file "/home/shayre/.ssh/known_hosts"
debug2: key_type_from_name: unknown key type '1024'
debug3: key_read: missing keytype
debug3: load_hostkeys: found key type RSA1 in file /home/username/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug1: Host 'proxy-bt-2' is known and matches the RSA1 host key.
debug1: Found key in /home/username/.ssh/known_hosts:1
debug1: Encryption type: 3des
debug1: Sent encrypted session key.
debug2: cipher_init: set keylen (16 -> 32)
debug2: cipher_init: set keylen (16 -> 32)
debug1: Installing crc compensation attack detector.
debug1: Received encrypted confirmation.
debug1: Trying RSA authentication with key '/home/username/.ssh/identity'
debug1: Received RSA challenge from server.
Enter passphrase for RSA key '/home/username/.ssh/identity':
debug1: Sending response to host key RSA challenge.
debug1: Remote: RSA authentication accepted.
debug1: RSA authentication accepted by server.
Authenticated to server.name ([192.131.79.70]:22).
debug2: x11_get_proto: /usr/bin/xauth -f /tmp/ssh-aPHVuHic3976/xauthfile generat
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x10
debug1: Sending command: netscape
debug1: Entering interactive session.
debug2: fd 0 setting O_NONBLOCK
debug1: fd 0 clearing O_NONBLOCK
debug1: Received X11 open request.
debug2: fd 4 setting O_NONBLOCK
debug3: fd 4 is O_NONBLOCK
debug1: channel 0: new [X11 connection from server.name port 1874]
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
작동하지 않는 출력은 다음과 같습니다.
Red Hat Linux release 9 (Shrike)
$ ssh -1 -vvv -l username -o "ForwardX11 yes" server.address netscape
OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011
debug2: ssh_connect: needpriv 0
debug1: Connecting to server.address [192.65.220.98] port 22.
debug1: Connection established.
debug1: identity file /home/username/.ssh/identity type 0
debug1: identity file /home/username/.ssh/identity-cert type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.7.1p2
debug1: match: OpenSSH_3.7.1p2 pat OpenSSH_3.*
debug1: Local version string SSH-1.5-OpenSSH_5.8
debug2: fd 3 setting O_NONBLOCK
debug1: Waiting for server public key.
debug1: Received server public key (768 bits) and host key (1024 bits).
debug1: Server host key: RSA1 53:40:10:d1:86:92:1e:d5:a1:70:0f:b0:4f:c8:67:eb
debug3: load_hostkeys: loading entries for host "ext-proxy-2.ftel.co.uk" from file "/home/shayre/.ssh/known_hosts"
debug2: key_type_from_name: unknown key type '1024'
debug3: key_read: missing keytype
debug3: load_hostkeys: found key type RSA1 in file /home/username/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug3: load_hostkeys: loading entries for host "192.65.220.98" from file "/home/shayre/.ssh/known_hosts"
debug2: key_type_from_name: unknown key type '1024'
debug3: key_read: missing keytype
debug3: load_hostkeys: found key type RSA1 in file /home/username/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys
debug1: Host 'server.address' is known and matches the RSA1 host key.
debug1: Found key in /home/username/.ssh/known_hosts:1
debug1: Encryption type: 3des
debug1: Sent encrypted session key.
debug2: cipher_init: set keylen (16 -> 32)
debug2: cipher_init: set keylen (16 -> 32)
debug1: Installing crc compensation attack detector.
debug1: Received encrypted confirmation.
debug1: Trying RSA authentication with key '/home/username/.ssh/identity'
debug1: Received RSA challenge from server.
Enter passphrase for RSA key '/home/username/.ssh/identity':
debug1: Sending response to host key RSA challenge.
debug1: Remote: RSA authentication accepted.
debug1: RSA authentication accepted by server.
Authenticated to server.address ([192.65.220.98]:22).
debug2: x11_get_proto: /usr/bin/xauth -f /tmp/ssh-kOywxfZB5752/xauthfile generate 127.0.0.1:0.0 MIT-MAGIC-COOKIE-1 untrusted timeout 1200 2>/dev/null
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: fd 3 setting TCP_NODELAY
debug3: packet_set_tos: set IP_TOS 0x10
debug1: Sending command: netscape
debug1: Entering interactive session.
debug2: fd 0 setting O_NONBLOCK
debug1: fd 0 clearing O_NONBLOCK
bash: line 1: netscape: command not found
Transferred: sent 1096, received 716 bytes, in 0.0 seconds
Bytes per second: sent 26095.4, received 17047.7
debug1: Exit status 127
내 클라이언트 컴퓨터가 x11 트래픽을 전달하고 일반 SSH 세션을 설정할 수 있지만 이 특정 버전에서 Netscape를 요청하면 실패합니까?
Red Hat Linux 버전 6.2(Zoot)의 작동 버전은 다음을 제공합니다.
debug1: Received X11 open request.
작동하지 않는 Red Hat Linux 버전 9(Shrike) 버전은 다음과 같이 표시됩니다.
bash: line 1: netscape: command not found
명백한 질문 외에도 이 버전은 다른 브라우저를 지원하며 어떻게 작동하게 할 수 있습니까?
답변1
Netscape 실행 파일이나 래퍼 스크립트를 찾을 수 없기 때문에 실패합니다. Netscape를 설치하거나 Firefox를 사용해 보세요.