ssh-x

Интернет
Правила форума
Правильно сформулированный вопрос и его грамотное оформление способствует высокой вероятности получения достаточно содержательного и по существу ответа.
Аватара пользователя

Автор темы
kotopes
Сообщения: 191
Зарегистрирован: 30 авг 2016, 08:07
Решено: 2
Благодарил (а): 10 раз
Поблагодарили: 10 раз

ssh-x

Сообщение kotopes » 13 сен 2016, 18:23

При попытке запустить х-приложение выходит ошибка.

~ $ xed
Failed to connect to Mir: Failed to connect to server socket: Нет такого файла или каталога
Unable to init server: Не удалось подключиться к: В соединении отказано
(xed:2226): Gtk-WARNING **: cannot open display:

Вот выхлом с параметром -x -v :
konstantin@konstantin-pc ~ $ ssh -x -v tamara@192.168.100.30
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g-fips 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.100.30 [192.168.100.30] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/konstantin/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/konstantin/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/konstantin/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/konstantin/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/konstantin/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/konstantin/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/konstantin/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/konstantin/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.1
debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.1 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 192.168.100.30:22 as 'tamara'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256@libssh.org
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:yJ8Y0qMjh04PxEXzX98o6IA9eo9MnodLcxZbM+K73Mc
debug1: Host '192.168.100.30' is known and matches the ECDSA host key.
debug1: Found key in /home/konstantin/.ssh/known_hosts:1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/konstantin/.ssh/id_rsa
debug1: Trying private key: /home/konstantin/.ssh/id_dsa
debug1: Trying private key: /home/konstantin/.ssh/id_ecdsa
debug1: Trying private key: /home/konstantin/.ssh/id_ed25519
debug1: Next authentication method: password
tamara@192.168.100.30's password:
debug1: Authentication succeeded (password).
Authenticated to 192.168.100.30 ([192.168.100.30]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LC_PAPER = kk_KZ.UTF-8
debug1: Sending env LC_ADDRESS = kk_KZ.UTF-8
debug1: Sending env LC_MONETARY = kk_KZ.UTF-8
debug1: Sending env LC_NUMERIC = kk_KZ.UTF-8
debug1: Sending env LC_TELEPHONE = kk_KZ.UTF-8
debug1: Sending env LC_IDENTIFICATION = kk_KZ.UTF-8
debug1: Sending env LANG = ru_RU.UTF-8
debug1: Sending env LC_MEASUREMENT = kk_KZ.UTF-8
debug1: Sending env LC_NAME = kk_KZ.UTF-8
Welcome to Linux Mint 18 Sarah (GNU/Linux 4.4.0-21-generic i686)

* Documentation: https://www.linuxmint.com
Last login: Tue Sep 13 23:17:10 2016 from 192.168.100.4
tamara@tamara-pc ~ $ xed
Failed to connect to Mir: Failed to connect to server socket: Нет такого файла или каталога
Unable to init server: Не удалось подключиться к: В соединении отказано

(xed:2226): Gtk-WARNING **: cannot open display:
tamara@tamara-pc ~ $
Содержимое /etc/ssh/ssh_config :
Host *
# ForwardAgent no
ForwardX11 yes
ForwardX11Trusted yes
# X11DisplayOffset 10
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication no
# GSSAPIDelegateCredentials no
# GSSAPIKeyExchange no
# GSSAPITrustDNS no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
# IdentityFile ~/.ssh/id_ecdsa
# IdentityFile ~/.ssh/id_ed25519
# Port 22
# Protocol 2
# Cipher 3des
# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
# MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
# EscapeChar ~
# Tunnel no
# TunnelDevice any:any
# PermitLocalCommand no
# VisualHostKey no
# ProxyCommand ssh -q -W %h:%p gateway.example.com
# RekeyLimit 1G 1h
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
linux mint 18 x64 Cinnamon

Решение Chocobo » 13 сен 2016, 20:35
kotopes, Для начала, не -x, а -X для X11Forwarding

Перейти к ответу ➙

В сети
Аватара пользователя

Chocobo
Сообщения: 5492
Зарегистрирован: 27 авг 2016, 19:57
Решено: 127
Откуда: НН
Благодарил (а): 410 раз
Поблагодарили: 1422 раза

Re: ssh-x

Сообщение Chocobo » 13 сен 2016, 20:35

kotopes, Для начала, не -x, а -X для X11Forwarding

Аватара пользователя

Автор темы
kotopes
Сообщения: 191
Зарегистрирован: 30 авг 2016, 08:07
Решено: 2
Благодарил (а): 10 раз
Поблагодарили: 10 раз

Re: ssh-x

Сообщение kotopes » 14 сен 2016, 11:52

Chocobo писал(а): kotopes, Для начала, не -x, а -X для X11Forwarding
Точно, не знал что Х большая. Спасибо.

Вернуться в «Работа с сетью»