cergei1982 |
|
Темы:
2
Сообщения:
8
Участник с: 13 июня 2010
|
Здраствуйте.Недавно перешел на archlinux и вот решил настроить удаленное управление по ssh.Комп с которого работаю с системой Lubuntu(назовем клиент),удаленный с Archlinux c рабочими иксами(назовем сервер,проверял запуская на компе,где Archlinux командой startx в первой виртуальной консоле,а иксы запускаются на седьмой консоле).Без иксов без проблем настроил управление,но вот пробую войти и запустить иксы с клиента командой ssh -X user@IP,с терминала(с компа где у меня стоит Lubuntu).В Linux Format прочитал что надо поправить в файле настройки ssh_config на обоих компах прописав ForwardX11 yes и теперь при запуске команд на клиенте: 1)ssh -X user@IP 2)startx –:1 Иксы запускаются,но не перекидывает в седьмую консоль где иксы запустились на сервере.А в первой консоле клиента остался,где написаны логи запуска на терминале сервера.Вот и как мне переключится на седьмую консоль на клиенте в терменале,где работают иксы на сервере.Если подключаю монитор на сервер и вижу что иксы работают. Вот настройки клиента [22:36] cer@cer-laptop: /etc/ssh$: cat ssh_config # 1. command line options # 2. user-specific file # 3. system-wide file # Any configuration value is only changed the first time it is set. # Thus, host-specific definitions should be at the beginning of the # configuration file, and defaults at the end. # Site-wide defaults for some commonly used options. For a comprehensive # list of available options, their meanings and defaults, please see the # ssh_config(5) man page. Host * # ForwardAgent no ForwardX11 yes # ForwardX11Trusted yes # 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 # Port 22 # Protocol 2,1 # Cipher 3des # Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc # MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160 # EscapeChar ~ # Tunnel no # TunnelDevice any:any # PermitLocalCommand no # VisualHostKey no SendEnv LANG LC_* HashKnownHosts yes GSSAPIAuthentication yes GSSAPIDelegateCredentials no Вот настройки сервера(Archlinux) [root@cer_archlinux ~]# cat /etc/ssh/ssh_config # $OpenBSD: ssh_config,v 1.26 2010/01/11 01:39:46 dtucker Exp $ # This is the ssh client system-wide configuration file. See # ssh_config(5) for more information. This file provides defaults for # users, and the values can be changed in per-user configuration files # or on the command line. # Configuration data is parsed as follows: # 1. command line options # 2. user-specific file # 3. system-wide file # Any configuration value is only changed the first time it is set. # Thus, host-specific definitions should be at the beginning of the # configuration file, and defaults at the end. # Site-wide defaults for some commonly used options. For a comprehensive # list of available options, their meanings and defaults, please see the # ssh_config(5) man page. Host * # ForwardAgent no ForwardX11 yes # RhostsRSAAuthentication no # RSAAuthentication yes # PasswordAuthentication yes # HostbasedAuthentication no # GSSAPIAuthentication no # GSSAPIDelegateCredentials no # BatchMode no # CheckHostIP yes # AddressFamily any # ConnectTimeout 0 # StrictHostKeyChecking ask # IdentityFile ~/.ssh/identity # IdentityFile ~/.ssh/id_rsa # IdentityFile ~/.ssh/id_dsa # Port 22 Protocol 2 # Cipher 3des # Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc # MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160 # EscapeChar ~ # Tunnel no # TunnelDevice any:any # PermitLocalCommand no # VisualHostKey no # ProxyCommand ssh -q -W %h:%p gateway.example.com HashKnownHosts yes StrictHostKeyChecking ask |