[CentOS] ssh X11 forwarding not working

James A. Peltier jpeltier at cs.sfu.ca
Wed Oct 10 17:25:28 UTC 2007


Feizhou wrote:
> James A. Peltier wrote:
>> I'm having problems with ssh.com and X11 forwarding
>>
>> ssh: SSH Secure Shell 3.2.0 (non-commercial version) on i686-pc-linux-gnu
>>
>> I am in the process of testing some of my machines with CentOS 5 
>> x86/x86_64 and have run into a bit of a snag.  X11 Forwarding is not 
>> working.
>>
>> Any hints?  I've checked the ssh config files and they seem to be 
>> identical to the config files on our existing SuSE 10.0 machines which 
>> are working.  This is troubling indeed.
>>
>>
> 
> ssh -v and see what the ssh client complains about.
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

ssh -v pixelplanes
debug: SshAppCommon/sshappcommon.c:138/ssh_app_get_global_regex_context: 
Allocating global SshRegex context.
debug: SshConfig/sshconfig.c:2797/ssh2_parse_config_ext: Metaconfig 
parsing stopped at line 3.
debug: SshConfig/sshconfig.c:2704/ssh2_parse_config_ext: Unable to open 
/cs/guests/user/.ssh2/ssh2_config
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 = 42814
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
debug: Requesting X11 forwarding with authentication spoofing.
debug: Using X cookie from SECURITY extension (authorization id is 145).
user41: display
display: unable to open X server `'.
user42: echo $DISPLAY
DISPLAY: Undefined variable.


-- 
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



More information about the CentOS mailing list