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.
I've tried all combinations of (+/-)[Xx] and it doesn't work, seemingly it doesn't want to set the environment variable properly and therefore doesn't know where to send the X requests.
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.
On Tue, 2007-10-09 at 17:21 -0700, 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.
I've tried all combinations of (+/-)[Xx] and it doesn't work, seemingly it doesn't want to set the environment variable properly and therefore doesn't know where to send the X requests.
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.
---- normally, I just
ssh -XC some_host_somewhere
and it works
Craig
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.
--- Feizhou feizhou@graffiti.net 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.
I just installed CentOS 5.0 on one machine here and have a similar problem. I haven't changed the config file from what was installed, and it looks pretty much like the config in CentOS 4.5.
I've got openssh-4.3p2-16.el5 on the CentOS 5.0 machine, and have tried to get X11 forwarding working on connections from three machines with different os's -- centos 4.5, ubuntu and Mac OS.
ssh -v doesn't seem to say anything out of the ordinary. After authentication, it says:
Entering interactive session. Requesting X11 forwarding with authentication spoofing.
Trying to open an emacs window without a -d argument, I get a message about no address for localhost:6010.
Supplying the -d argument, I get Xlib: connection to "xxx:0" refused by server Xlib: No protocol specified.
Barry
____________________________________________________________________________________ Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545433
--- Barry Schiffman schiffo2000@yahoo.com wrote:
--- Feizhou feizhou@graffiti.net 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.
I just installed CentOS 5.0 on one machine here and have a similar problem. I haven't changed the config file from what was installed, and it looks pretty much like the config in CentOS 4.5.
I've got openssh-4.3p2-16.el5 on the CentOS 5.0 machine, and have tried to get X11 forwarding working on connections from three machines with different os's -- centos 4.5, ubuntu and Mac OS.
ssh -v doesn't seem to say anything out of the ordinary. After authentication, it says:
Entering interactive session. Requesting X11 forwarding with authentication spoofing.
Trying to open an emacs window without a -d argument, I get a message about no address for localhost:6010.
Supplying the -d argument, I get Xlib: connection to "xxx:0" refused by server Xlib: No protocol specified.
Barry
I should've tried this before writing. If I set the environment variable DISPLAY in the xterm after making the ssh connection, it works.
____________________________________________________________________________________ Check out the hottest 2008 models today at Yahoo! Autos. http://autos.yahoo.com/new_cars.html
I often see this when I've forgotten to install the xorg-x11-xauth package.
Having to set DISPLAY manually is annoying
regards, Bent
On 10/10/07, Barry Schiffman schiffo2000@yahoo.com wrote:
--- Barry Schiffman schiffo2000@yahoo.com wrote:
--- Feizhou feizhou@graffiti.net 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.
I just installed CentOS 5.0 on one machine here and have a similar problem. I haven't changed the config file from what was installed, and it looks pretty much like the config in CentOS 4.5.
I've got openssh-4.3p2-16.el5 on the CentOS 5.0 machine, and have tried to get X11 forwarding working on connections from three machines with different os's -- centos 4.5, ubuntu and Mac OS.
ssh -v doesn't seem to say anything out of the ordinary. After authentication, it says:
Entering interactive session. Requesting X11 forwarding with authentication spoofing.
Trying to open an emacs window without a -d argument, I get a message about no address for localhost:6010.
Supplying the -d argument, I get Xlib: connection to "xxx:0" refused by server Xlib: No protocol specified.
Barry
I should've tried this before writing. If I set the environment variable DISPLAY in the xterm after making the ssh connection, it works.
____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos. http://autos.yahoo.com/new_cars.html _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
--- Bent Terp bent@nagstrup.dk wrote:
I often see this when I've forgotten to install the xorg-x11-xauth package.
Having to set DISPLAY manually is annoying
regards, Bent
On 10/10/07, Barry Schiffman schiffo2000@yahoo.com wrote:
--- Barry Schiffman schiffo2000@yahoo.com wrote:
--- Feizhou feizhou@graffiti.net 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.
I just installed CentOS 5.0 on one machine here
and
have a similar problem. I haven't changed the
config
file from what was installed, and it looks
pretty
much like the config in CentOS 4.5.
I've got openssh-4.3p2-16.el5 on the CentOS 5.0 machine, and have tried to get X11 forwarding working on connections from three machines with
different
os's -- centos 4.5, ubuntu and Mac OS.
ssh -v doesn't seem to say anything out of the ordinary. After authentication, it says:
Entering interactive session. Requesting X11 forwarding with authentication spoofing.
Trying to open an emacs window without a -d argument, I get a message about no address for
localhost:6010.
Supplying the -d argument, I get Xlib: connection to "xxx:0" refused by server Xlib: No protocol specified.
Barry
I should've tried this before writing. If I set
the
environment variable DISPLAY in the xterm after
making
the ssh connection, it works.
Alas, I've got it.
xorg-x11-xauth-1.0.1-2.1
____________________________________________________________________________________ Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
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@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.
John R Pierce wrote:
ssh -v pixelplanes
...
try...
$ ssh -X -v hostname
CentOS mailing list CentOS@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
On 10/10/07, John R Pierce pierce@hogranch.com wrote:
$ ssh -X -v hostname
In newer cases ssh -Y is what you want, which provides 'trusted' forwarding. Assuming the server supports it. (CentOS servers support this by default)
Jim Perrin wrote:
On 10/10/07, John R Pierce pierce@hogranch.com wrote:
$ ssh -X -v hostname
In newer cases ssh -Y is what you want, which provides 'trusted' forwarding. Assuming the server supports it. (CentOS servers support this by default)
This is not openssh but ssh from secure.com
ssh: SSH Secure Shell 3.2.0 (non-commercial version) on i686-pc-linux-gnu
From the man page
+x Enable X11 connection forwarding (default). If X11 SECURITY extension is compiled in, treat the client applications as untrusted (the effects of this depend on your Xserver’s security policy). See TrustX11Applications in ssh2_config(5) for addi- tional details.
+X As above, but the client applications are treated as trusted.
-x Disable X11 connection forwarding.
so the +X should have done the same thing as the -Y you specified.
On 10/10/07, James A. Peltier jpeltier@cs.sfu.ca wrote:
so the +X should have done the same thing as the -Y you specified.
Yep, you're right. I should actually *read* the previous info before opening my yap sometimes :-P