[CentOS] ssh X11 forwarding not working

Wed Oct 10 19:01:01 UTC 2007
James A. Peltier <jpeltier at cs.sfu.ca>

John R Pierce wrote:
> 
>> ssh -v pixelplanes
> ...
> 
> 
> try...
> 
>    $ ssh -X -v hostname
> 
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

ssh -X -v pixelplanes
debug: Connecting to pixelplanes, port 22... (SOCKS not used)
debug: Ssh2/ssh2.c:2297/main: Entering event loop.
debug: Ssh2Client/sshclient.c:1421/ssh_client_wrap: Creating transport 
protocol.
debug: 
SshAuthMethodClient/sshauthmethodc.c:85/ssh_client_authentication_initialize: 
Added "publickey" to usable methods.
debug: 
SshAuthMethodClient/sshauthmethodc.c:85/ssh_client_authentication_initialize: 
Added "keyboard-interactive" to usable methods.
debug: 
SshAuthMethodClient/sshauthmethodc.c:85/ssh_client_authentication_initialize: 
Added "password" to usable methods.
debug: Ssh2Client/sshclient.c:1462/ssh_client_wrap: Creating userauth 
protocol.
debug: client supports 3 auth methods: 
'publickey,keyboard-interactive,password'
debug: Ssh2Common/sshcommon.c:530/ssh_common_wrap: local ip = 
199.60.11.74, local port = 54342
debug: Ssh2Common/sshcommon.c:532/ssh_common_wrap: remote ip = 
199.60.11.73, remote port = 22
debug: SshConnection/sshconn.c:1945/ssh_conn_wrap: Wrapping...
debug: SshReadLine/sshreadline.c:2414/ssh_readline_eloop_initialize: 
Initializing ReadLine...
debug: Remote version: SSH-2.0-3.2.0 SSH Secure Shell (non-commercial)
debug: Major: 3 Minor: 2 Revision: 0
debug: Ssh2Transport/trcommon.c:1901/ssh_tr_negotiate: lang s to c: `', 
lang c to s: `'
debug: Ssh2Transport/trcommon.c:1967/ssh_tr_negotiate: c_to_s: cipher 
aes128-cbc, mac hmac-sha1, compression none
debug: Ssh2Transport/trcommon.c:1970/ssh_tr_negotiate: s_to_c: cipher 
aes128-cbc, mac hmac-sha1, compression none
debug: Remote host key found from database.
debug: Ssh2Common/sshcommon.c:331/ssh_common_special: Received 
SSH_CROSS_STARTUP packet from connection protocol.
debug: Ssh2Common/sshcommon.c:381/ssh_common_special: Received 
SSH_CROSS_ALGORITHMS packet from connection protocol.
debug: server offers auth methods 'publickey,password'.
debug: 
Ssh2AuthPubKeyClient/authc-pubkey.c:1591/ssh_client_auth_pubkey_add_file_keys: 
adding keyfile "/cs/guests/user/.ssh2/id_dsa_2048_a" to candidates
debug: Constructing and sending signature in publickey authentication.
debug: Ssh2AuthPubKeyClient/authc-pubkey.c:1811/ssh_client_auth_pubkey: 
Public key authentication was successful.
debug: Ssh2Common/sshcommon.c:299/ssh_common_special: Received 
SSH_CROSS_AUTHENTICATED packet from connection protocol.
debug: SshReadLine/sshreadline.c:2472/ssh_readline_eloop_uninitialize: 
Uninitializing ReadLine...
Authentication successful.
debug: Ssh2Common/sshcommon.c:840/ssh_common_new_channel: num_channels now 1


display
display: unable to open X server `'.



ssh +X -v pixelplanes
debug: Connecting to pixelplanes, port 22... (SOCKS not used)
debug: Ssh2/ssh2.c:2297/main: Entering event loop.
debug: Ssh2Client/sshclient.c:1421/ssh_client_wrap: Creating transport 
protocol.
debug: 
SshAuthMethodClient/sshauthmethodc.c:85/ssh_client_authentication_initialize: 
Added "publickey" to usable methods.
debug: 
SshAuthMethodClient/sshauthmethodc.c:85/ssh_client_authentication_initialize: 
Added "keyboard-interactive" to usable methods.
debug: 
SshAuthMethodClient/sshauthmethodc.c:85/ssh_client_authentication_initialize: 
Added "password" to usable methods.
debug: Ssh2Client/sshclient.c:1462/ssh_client_wrap: Creating userauth 
protocol.
debug: client supports 3 auth methods: 
'publickey,keyboard-interactive,password'
debug: Ssh2Common/sshcommon.c:530/ssh_common_wrap: local ip = 
199.60.11.74, local port = 38160
debug: Ssh2Common/sshcommon.c:532/ssh_common_wrap: remote ip = 
199.60.11.73, remote port = 22
debug: SshConnection/sshconn.c:1945/ssh_conn_wrap: Wrapping...
debug: SshReadLine/sshreadline.c:2414/ssh_readline_eloop_initialize: 
Initializing ReadLine...
debug: Remote version: SSH-2.0-3.2.0 SSH Secure Shell (non-commercial)
debug: Major: 3 Minor: 2 Revision: 0
debug: Ssh2Transport/trcommon.c:1901/ssh_tr_negotiate: lang s to c: `', 
lang c to s: `'
debug: Ssh2Transport/trcommon.c:1967/ssh_tr_negotiate: c_to_s: cipher 
aes128-cbc, mac hmac-sha1, compression none
debug: Ssh2Transport/trcommon.c:1970/ssh_tr_negotiate: s_to_c: cipher 
aes128-cbc, mac hmac-sha1, compression none
debug: Remote host key found from database.
debug: Ssh2Common/sshcommon.c:331/ssh_common_special: Received 
SSH_CROSS_STARTUP packet from connection protocol.
debug: Ssh2Common/sshcommon.c:381/ssh_common_special: Received 
SSH_CROSS_ALGORITHMS packet from connection protocol.
debug: server offers auth methods 'publickey,password'.
debug: 
Ssh2AuthPubKeyClient/authc-pubkey.c:1591/ssh_client_auth_pubkey_add_file_keys: 
adding keyfile "/cs/guests//.ssh2/id_dsa_2048_a" to candidates
debug: Constructing and sending signature in publickey authentication.
debug: Ssh2AuthPubKeyClient/authc-pubkey.c:1811/ssh_client_auth_pubkey: 
Public key authentication was successful.
debug: Ssh2Common/sshcommon.c:299/ssh_common_special: Received 
SSH_CROSS_AUTHENTICATED packet from connection protocol.
debug: SshReadLine/sshreadline.c:2472/ssh_readline_eloop_uninitialize: 
Uninitializing ReadLine...
Authentication successful.
debug: Ssh2Common/sshcommon.c:840/ssh_common_new_channel: num_channels now 1
debug: Requesting X11 forwarding with authentication spoofing.
debug: Using X cookie from SECURITY extension (authorization id is 151).
Last login: Wed Oct 10 2007 11:57:13 -0700 from reality

display
display: unable to open X server `'.

rpm -qa |grep -i xauth
xorg-x11-xauth-1.0.1-2.1

-- 
James A. Peltier
Technical Director, RHCE
SCIRF | GrUVi @ Simon Fraser University - Burnaby Campus
Phone   : 778-782-3610
Fax     : 778-782-3045
Mobile  : 778-840-6434
E-Mail  : user at cs.sfu.ca
Website : http://gruvi.cs.sfu.ca | http://scirf.cs.sfu.ca
MSN     : subatomic_spam at hotmail.com