VirtualBox over ssh

lord_Niedzwiedz sir_Misiek w o2.pl
Czw, 22 Mar 2018, 11:12:47 CET



W dniu 22.03.2018 o 09:51, lord_Niedzwiedz pisze:
>
>>>>> [grzegorz w muff ~]$ VirtualBox
>>>>> Qt FATAL: QXcbConnection: Could not connect to display
>>> [grzegorz w muff ~]$ xterm
>>> xterm: Xt error: Can't open display:
>>> xterm: DISPLAY is not set
>> W tym przypadku nie działa Ci forwardowanie Xów.
>> Uruchom z ssh -v i szukaj przyczyn w configach ssh(d).
>         Odpaliłem ssh z Arch linuxa i mogę uruchomić Virtualboxa z 
> tego serwera zdalnie, zarówno z opcją -X jak -Y.
> Z mojego kompa z PLD nie działa  ;-/
>
[root w Misiek1 ssh]# Terminal -T Muff_VBox --hide-menubar 
--geometry=150x21 -x ssh -X -p 6822 grzegorz w 172.20.0.2
Failed to connect to session manager: Nie udało się połączyć z 
menadżerem sesji: SESSION_MANAGER environment variable not defined
[root w Misiek1 ssh]# ssh -X -p 6822 grzegorz w 172.20.0.2
[grzegorz w muff ~]$ VirtualBox
^C


[root w Misiek1 ssh]# ssh -v -X -p 6822 grzegorz w 172.20.0.2
OpenSSH_7.6p1, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /root/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: /etc/ssh/ssh_config line 60: Applying options for *
debug1: Connecting to 172.16.0.2 [172.10.0.2] port 5022.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6
debug1: match: OpenSSH_7.6 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 172.20.0.2:6822 as 'grzegorz'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: aes128-ctr MAC: 
umac-64-etm w openssh.com compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: 
umac-64-etm w openssh.com compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa 
SHA256:+6vthMxNh5rVaczQ3nFlvqPgVnwg6gBUUO/glUi1Wso
debug1: Host '[172.16.0.2]:5022' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:9
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: 
server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: 
publickey,gssapi-with-mic,password,keyboard-interactive
debug1: Next authentication method: gssapi-with-mic
debug1:  Miscellaneous failure (see text)
unknown mech-code 2 for mech 1 3 6 1 4 1 311 2 2 10

debug1:  Miscellaneous failure (see text)
get-principal lstat(/tmp/krb5cc_0)

debug1: Next authentication method: publickey
debug1: Offering public key: RSA 
SHA256:FvcSGCgiZ/wl2rLJKcAIwX1rEdOI6/eGIDTE0opr13M /root/.ssh/id_rsa
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug1: Authentication succeeded (publickey).
Authenticated to 172.16.0.2 ([172.16.0.2]:5022).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions w openssh.com
debug1: Entering interactive session.
debug1: pledge: exec
debug1: client_input_global_request: rtype hostkeys-00 w openssh.com 
want_reply 0
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Sending environment.
debug1: Sending env LC_ALL = pl_PL.UTF-8
debug1: Sending env LANG = pl_PL.UTF-8
Last login: Thu Mar 22 11:11:35 2018 from 172.16.0.200

[grzegorz w muff ~]$ VirtualBox
debug1: client_input_channel_open: ctype x11 rchan 2 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 34868
debug1: channel 1: new [x11]
debug1: confirm x11
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 34869
debug1: channel 2: 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 34870
debug1: channel 3: new [x11]
debug1: confirm x11
^Cdebug1: channel 1: FORCE input drain
debug1: channel 1: free: x11, nchannels 4

[grzegorz w muff ~]$ exit
wylogowanie
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow w openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 3

debug1: channel 2: FORCE input drain
debug1: channel 3: FORCE input drain
debug1: channel 2: free: x11, nchannels 2
debug1: channel 3: free: x11, nchannels 1
Connection to 172.16.0.2 closed.
Transferred: sent 756976, received 1817416 bytes, in 14.9 seconds
Bytes per second: sent 50910.4, received 122230.2
debug1: Exit status 130



Więcej informacji o liście pld-users-pl