Fórum Ubuntu CZ/SK
Ostatní => Ubuntu Server => Téma založeno: libcha 21 Října 2011, 13:47:03
-
Ahoj,
nedari se mi rozbehat x forwarding. Mam pocitac v roli serveru s Lubuntu/oneiric a pripojuju se na nej ze skolniho pocitace:
~ $ ssh princezna -Xv
OpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /home/peltanl/.ssh/config
debug1: Applying options for princezna
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to princezna.kolej.mff.cuni.cz [78.128.195.109] port 22.
debug1: Connection established.
debug1: identity file /home/peltanl/.ssh/identity type -1
debug1: identity file /home/peltanl/.ssh/id_rsa type -1
debug1: identity file /home/peltanl/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.8p1 Debian-7ubuntu1
debug1: match: OpenSSH_5.8p1 Debian-7ubuntu1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr 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 'princezna.kolej.mff.cuni.cz' is known and matches the RSA host key.
debug1: Found key in /home/peltanl/.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/peltanl/.ssh/identity
debug1: Trying private key: /home/peltanl/.ssh/id_rsa
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Requesting authentication agent forwarding.
Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic i686)
* Documentation: https://help.ubuntu.com/
*** /dev/sda1 will be checked for errors at next reboot ***
Last login: Fri Oct 21 12:43:14 2011 from engywook.karlin.mff.cuni.cz
libcha@princezna:~$ xclock
Error: Can't open display:
libcha@princezna:~$ export DISPLAY=10.0
libcha@princezna:~$ xclock
Error: Can't open display: 10.0
libcha@princezna:~$ export DISPLAY=localhost:10.0
libcha@princezna:~$ xclock
Error: Can't open display: localhost:10.0
Ohledne nastaveni, "obrazek" rekne nejvic:
libcha@princezna:~$ echo $DISPLAY
libcha@princezna:~$ grep /etc/ssh/sshd_config -e X11
X11Forwarding yes
X11DisplayOffset 10
libcha@princezna:~$ grep /etc/ssh/ssh_config -e X11
ForwardX11 yes
ForwardX11Trusted yes
libcha@princezna:~$ grep /etc/ssh/ssh_config -e Agent
ForwardAgent yes
Nejake napady? Mohl by bytproblem i v klientovi? Dodam, ze ssh -Y konci stejnou chybou i prubehem jako -X...
Diky moc
-
A není problém v čísle displaye na serveru? Např. když se připojím na server do práce, tak mám
filip@xd:~ echo $DISPLAY
localhost:11.0
-
nepomohlo ani:
libcha@princezna:~$ export DISPLAY=localhost:11.0
libcha@princezna:~$ xclock
Error: Can't open display: localhost:11.0
problém bude asi že mi v tom ssh serveru něco CHYBÍ, jenže nevím co a v návodech jsem to nenašel :(
-
zkus dat na serveru do sshd_config
AddressFamily inet
-
nepomohlo.
Další problém mám se zdejšími správci :) Přesunuli totiž moje téma sem.
Prosím další čtenáře aby věděli, že jde o klasickou instalaci (L)ubuntu desktop, nikoli server. Možná tam tudíž nějaké balíčky v serveru standardní chybí.
-
restartoval jsi demona ?
-
ááá, moje blbost, po restartu už to jde, díky moc ! (i když jsem nepochopil proč "AddressFamily inet")
-
AddressFamily
Specifies which address family should be used by sshd(8). Valid arguments are “any”, “inet” (use IPv4 only), or “inet6” (use
IPv6 only). The default is “any”.
Protoze jsem se s tim mnohokrat setkal.