12-11-2008
'X11 forwarding' SSHD assigns already used port
Hi,
We've been facing a strange issue. Clients use X11 forwarding via SSH on HP server and sometimes the same DISPLAY is assigned to two (maybe more) sessions. As a result, some users can't open their applications, and some have their windows redirected to somebody else.
It looks as if sshd was not aware of the ports already assigned to other sessions.
# netstat -an | egrep -e "LISTEN|TIME_WAIT" | awk '{ if($4 ~ /\*\.60[0-9]{2}/) print }' | sort
tcp 0 0 *.6010 *.* LISTEN
tcp 0 0 *.6010 *.* LISTEN
tcp 0 0 *.6011 *.* LISTEN
tcp 0 0 *.6011 *.* LISTEN
tcp 0 0 *.6012 *.* LISTEN
tcp 0 0 *.6012 *.* LISTEN
tcp 0 0 *.6013 *.* LISTEN
tcp 0 0 *.6013 *.* LISTEN
tcp 0 0 *.6014 *.* LISTEN
tcp 0 0 *.6014 *.* LISTEN
tcp 0 0 *.6015 *.* LISTEN
Did anybody experience a similar problem?
Software versions are as follows:
- OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005
- HP-UX Secure Shell-A.04.30.007, HP-UX Secure Shell version
- HP-UX B.11.23 U ia64 0920657533 unlimited-user license
Kind Regards,
Pit
10 More Discussions You Might Find Interesting
1. OS X (Apple)
Hi,
I have issues with running graphical interfaces on my computer being remotely logged into a network via the -X option of ssh. My .cshrc shows DISPLAY=hostname:0 and I think there should be a different number instead of the 0. I changed the ssh_config file already to 'X11 forwarding yes', which... (0 Replies)
Discussion started by: ginese
0 Replies
2. Debian
I have 2 Debian boxes.
In my ssh.com client and my putty client, I have X11 fowarding turned
on for both boxes.
When I connect one, I can xterm with no problem back to my pc.
On the other, I keep getting:
xterm Xt error: Can't open display:
xterm: DISPLAY is not set
On both... (3 Replies)
Discussion started by: natter
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am using Putty, enabled SSH X11 forwarding and entered the X11 display location as "localhost:0". However I encountered the following error:
------------------------------------
# xclock &
2941
# X connection to localhost:10.0 broken (explicit kill or server shutdown).
+ Exit 1... (4 Replies)
Discussion started by: panggou
4 Replies
4. Red Hat
X11 forwarding problem between 2 RHEL4 machines with SSH
Already configured the following on both machines under /etc/ssh
Under sshd_config:
UsePAM no
AllowTcpForwarding yes
Under ssh_config:
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
-----------------------------
Using... (1 Reply)
Discussion started by: panggou
1 Replies
5. UNIX for Dummies Questions & Answers
Hi all
I'm having an issue with X11 Forwarding
I have a VM set up on my computer which I usually "ssh -X" to over a home network (192.168.1.*).
Client 192.168.1.100
Server 192.168.1.103
This worked perfectly fine for X11 forwarding.
However I am not at home now (and have no access to... (2 Replies)
Discussion started by: grahambo2005
2 Replies
6. UNIX for Dummies Questions & Answers
Hello. I installed a Debian box, and its installed remotely. I need to boot up iceweasel from there to do a quick test.
I log on using:
ssh root@<IP> -X
I have modified the /etc/ssh/sshd_config file, and added the X11Forwarding yes flag
And yet I still get:
Error: cannot open... (10 Replies)
Discussion started by: dynelight
10 Replies
7. Red Hat
Is it possible to launch an X11 application and have it use an X11 server on the other side of a bastion host? Specifically, here's my setup:
my laptop ------------- bastion -------------- remote host
I have putty installed on my laptop. The bastion is rhel 6.5 and the remote host is... (1 Reply)
Discussion started by: tsreyb
1 Replies
8. IP Networking
I would like to disable X11 session forcefully. I have tried the following things:
1. Setting appropriate DISPLAY variable in the /etc/environment file to be "0.0"
2. I have tried setting the sshd_config parameter X11Forwarding to be "no"
This session communication is happening by exchanging... (2 Replies)
Discussion started by: vaibhavvsk
2 Replies
9. UNIX for Beginners Questions & Answers
Unable to get X11 activated on my login even after Unix admin has enabled it (2 Replies)
Discussion started by: tomsayer1977
2 Replies
10. Red Hat
hi,
I'm trying to run a bash script that starts GUI. Though it says application started when I run this bash script doesn't show up any GUI. Here is what I've tried so far and please let me know if I'm missing something with the X11 set up here.
cat /etc/redhat-release
Red Hat Enterprise... (8 Replies)
Discussion started by: fop4658
8 Replies
LEARN ABOUT CENTOS
pax11publish
pax11publish(1) General Commands Manual pax11publish(1)
NAME
pax11publish - PulseAudio X11 Credential Utility
SYNOPSIS
pax11publish -h
pax11publish [options] [-d]
pax11publish [options] -e
pax11publish [options] -i
pax11publish [options] -r
DESCRIPTION
The pax11publish utility can be used to dump or manipulate the PulseAudio server credentials that can be stored as properties on the X11
root window.
Please note that the loadable module module-x11-publish exports the same information directly from the PulseAudio sound server, and should
in most cases be used in preference over this tool.
Use the following command to dump the raw PulseAudio-specific data that is stored in your X11 root window:
xprop -root | grep ^PULSE_
OPTIONS
-h Show help.
-d Read the PulseAudio server credentials currently set on the X11 root window and dump them in a human readable form. This reads the
PULSE_SERVER, PULSE_SINK, PULSE_SOURCE and PULSE_COOKIE properties.
-i Similar to -d, however dumps them in a Bourne shell compatible format so they may be used together with the eval shell command to
set the $PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE environment variables. Also reads the authentication cookie from the root window
and stores it in ~/.config/pulse/cookie.
-e Export the currently locally used sound server, sink, source configuration to the X11 root window. This takes the data from the
$PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE environment variables and combines them with the data from ~/.config/pulse/client.conf (or
/etc/pulse/client.conf if that file does not exist). If specific options are passed on the command line (-S, -O, -I, -c, see below),
they take precedence. Also uploads the local authentication cookie ~/.config/pulse/cookie to the X11 server.
-r Removes the configured PulseAudio configuration from the X11 root window.
-D DISPLAY
Connect to the specified X11 display, instead of the default one configured in $DISPLAY.
-S SERVER
Only valid for -e: export the specified PulseAudio server as default to the X11 display instead of the one configured via local con-
figuration.
-O SINK
Only valid for -e: export the specified sink as default sink to the X11 display instead of the one configured via local configura-
tion.
-I SOURCE
Only valid for -e: export the specified source as default to the X11 display instead of the one configured via local configuration.
-c FILE
Only valid for -e: export the PulseAudio authentication cookie stored in the specified file to the X11 display instead of the one
stored in ~/.config/pulse/cookie.
AUTHORS
The PulseAudio Developers <pulseaudio-discuss (at) lists (dot) freedesktop (dot) org>; PulseAudio is available from http://pulseaudio.org/
SEE ALSO
pulseaudio(1), xprop(1)
Manuals User pax11publish(1)