ssh -X forwarding problem under breezy
Rainer Gutkas
Rainer.Gutkas at kstp.at
Mon Jan 30 23:41:58 UTC 2006
Kristian Vilmann schrieb:
> Rainer Gutkas wrote:
>
>> Hi!
>>
>> I got two maschines in the moment running breezy, my Laptop a G3
>> Powerbook Pismo and a HP pavillion PC. I tried to do ssh -X -
>> forwarding today using to get the faster firefox from the pavillion
>> to display on my Laptop:
>>
>> ssh -X 99.99.99.199 firefox
>>
>> one out of ten times I get:(firefox-bin:9981):
>> Gtk-WARNING **: cannot open display:
>>
>> the about tenth time I get a firefox window.
>> When I try afterwards to start applications native on the
>> HP-Pavillion I can't open them. The same trouble:
>>
>> Gtk-WARNING **: cannot open display:
>>
>> So without using X-forwarding the Pavillion works fine and uses to
>> open application quite well. I thought this could be of interest.
>
>
> try running ssh -v -X <address>. It might give you a hint.
>
> /k
(what is puzzling me is that this worked perfect all the time when using
the same two maschines running hoary)
I tried this and this is the output of an succeeded ssh session, so to
be honest the outputs don't tell me a lot what is wrong, maybe somebody
can tell me:
rainer at pismo:~$ ssh -v -X 99.99.99.199 firefox
OpenSSH_4.1p1 Debian-7ubuntu4, OpenSSL 0.9.7g 11 Apr 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 99.99.99.199 [99.99.99.199] port 22.
debug1: Connection established.
debug1: identity file /home/rainer/.ssh/identity type -1
debug1: identity file /home/rainer/.ssh/id_rsa type -1
debug1: identity file /home/rainer/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version
OpenSSH_4.1p1 Debia n-7ubuntu4
debug1: match: OpenSSH_4.1p1 Debian-7ubuntu4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.1p1 Debian-7ubuntu4
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<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: Host '99.99.99.199' is known and matches the RSA host key.
debug1: Found key in /home/rainer/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/rainer/.ssh/identity
debug1: Trying private key: /home/rainer/.ssh/id_rsa
debug1: Trying private key: /home/rainer/.ssh/id_dsa
debug1: Next authentication method: password
rainer at 99.99.99.199's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = de_AT.UTF-8
debug1: Sending command: firefox
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 43323
debug1: channel 1: new [x11]
debug1: confirm x11
debug1: client_input_channel_open: ctype x11 rchan 4 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 43324
debug1: channel 2: new [x11]
debug1: confirm x11
debug1: channel 2: FORCE input drain
debug1: channel 1: FORCE input drain
debug1: channel 1: free: x11, nchannels 3
debug1: channel 2: free: x11, nchannels 2
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 43325
debug1: channel 1: new [x11]
debug1: confirm x11
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 1: FORCE input drain
debug1: channel 0: free: client-session, nchannels 2
debug1: channel 1: free: x11, nchannels 1
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 15.5 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 0
And this of an failed one:
rainer at pismo:~$ ssh -v -X 99.99.99.199 firefox
OpenSSH_4.1p1 Debian-7ubuntu4, OpenSSL 0.9.7g 11 Apr 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 99.99.99.199 [99.99.99.199] port 22.
debug1: Connection established.
debug1: identity file /home/rainer/.ssh/identity type -1
debug1: identity file /home/rainer/.ssh/id_rsa type -1
debug1: identity file /home/rainer/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version
OpenSSH_4.1p1 Debia n-7ubuntu4
debug1: match: OpenSSH_4.1p1 Debian-7ubuntu4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.1p1 Debian-7ubuntu4
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<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: Host '99.99.99.199' is known and matches the RSA host key.
debug1: Found key in /home/rainer/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/rainer/.ssh/identity
debug1: Trying private key: /home/rainer/.ssh/id_rsa
debug1: Trying private key: /home/rainer/.ssh/id_dsa
debug1: Next authentication method: password
rainer at 99.99.99.199's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = de_AT.UTF-8
debug1: Sending command: firefox
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
(firefox-bin:12644): Gtk-WARNING **: cannot open display:
debug1: channel 0: free: client-session, nchannels 1
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 12.3 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 1
rainer at pismo:~$ ssh -v -X 99.99.99.199 firefox
OpenSSH_4.1p1 Debian-7ubuntu4, OpenSSL 0.9.7g 11 Apr 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 99.99.99.199 [99.99.99.199] port 22.
debug1: Connection established.
debug1: identity file /home/rainer/.ssh/identity type -1
debug1: identity file /home/rainer/.ssh/id_rsa type -1
debug1: identity file /home/rainer/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version
OpenSSH_4.1p1 Debia n-7ubuntu4
debug1: match: OpenSSH_4.1p1 Debian-7ubuntu4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.1p1 Debian-7ubuntu4
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<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: Host '99.99.99.199' is known and matches the RSA host key.
debug1: Found key in /home/rainer/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/rainer/.ssh/identity
debug1: Trying private key: /home/rainer/.ssh/id_rsa
debug1: Trying private key: /home/rainer/.ssh/id_dsa
debug1: Next authentication method: password
rainer at 99.99.99.199's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LANG = de_AT.UTF-8
debug1: Sending command: firefox
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
(firefox-bin:12661): Gtk-WARNING **: cannot open display:
debug1: channel 0: free: client-session, nchannels 1
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 12.4 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Rainer.Gutkas.vcf
Type: text/x-vcard
Size: 200 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060131/c285fba2/attachment.vcf>
More information about the ubuntu-users
mailing list