![]() |
|
|||||||
| OpenBSD Security Functionally paranoid! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|||
|
Hi !!
Is it possible to ssh with -X support to a host using X at the same time ? |
|
|||
|
Yes.
|
|
|||
|
Thanks for answering back .. sorry for being dumb -as usual- .. I want to use X on both at the same time .. Here is the script output :
Code:
Script started on Wed Jul 25 11:13:33 2012
musashi@kankudai-Wed Jul 25-11:13:33@ ssh -X -l musashi 192.168.1.3
The authenticity of host '192.168.1.3 (192.168.1.3)' can't be established.
ECDSA key fingerprint is 00:af:90:2f:47:8f:85:59:04:ec:b2:80:ed:cb:f9:ce.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.3' (ECDSA) to the list of known hosts.
musashi@192.168.1.3's password:
Last login: Wed Jul 25 11:13:02 2012 from 192.168.1.4
OpenBSD 5.1 (GENERIC.MP) #188: Sun Feb 12 09:55:11 MST 2012
Welcome to OpenBSD: The proactively secure Unix-like operating system.
_ _ _ _
| | ____ _ _ __ | | ___ _ __| | __ _(_)
| |/ / _` | '_ \| |/ / | | |/ _` |/ _` | |
| < (_| | | | | <| |_| | (_| | (_| | |
|_|\_\__,_|_| |_|_|\_\\__,_|\__,_|\__,_|_|
/etc/X11/xinit/xinitrcul 25-11:15:11@ xinit /etc/X11/xinit/xi <
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
^Cxinit: unexpected signal 2
XIO: fatal IO error 35 (Resource temporarily unavailable) on X server ":0"
after 7 requests (7 known processed) with 0 events remaining.
musashi@kankudai-Wed Jul 25-11:15:16@ exit
Connection to 192.168.1.3 closed.
musashi@kankudai-Wed Jul 25-11:15:30@ fv
/bin/ksh: fv: not found
musashi@kankudai-Wed Jul 25-11:15:45@ exit
Script done on Wed Jul 25 11:15:49 2012
|
|
||||
|
1. X11 Forwarding must be enabled in the server's sshd_config(5) file. See the man page regarding the default, which is "no".
2. After X11 Forwarding is enabled, when you use ssh -X or -Y, the DISPLAY environment variable will be set for you. Do not set the value yourself. Code:
$ ssh jggimi Last login: Tue Jul 24 23:00:04 2012 from netbook.jggimi.homeip.net OpenBSD 5.2 (GENERIC) #61: Sat Jul 21 18:09:55 EDT 2012 $ echo $DISPLAY DISPLAY: Undefined variable. $ exit . . . $ ssh -X jggimi Last login: Tue Jul 24 23:04:22 2012 from netbook.jggimi.homeip.net OpenBSD 5.2 (GENERIC) #61: Sat Jul 21 18:09:55 EDT 2012 $ echo $DISPLAY localhost:10.0
__________________
OpenBSD LiveCDs/LiveDVDs |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OpenBSD as host for VirtualBox | gpatrick | OpenBSD General | 15 | 9th May 2012 02:22 AM |
| If 'host' returns not found... | guitarscn | General software and network | 1 | 1st September 2010 02:10 AM |
| DNS host entry on the Slave server | ccc | General software and network | 3 | 24th June 2009 01:09 AM |
| ssh/rdesktop into host behind NAT | JMJ_coder | General software and network | 18 | 13th January 2009 07:19 PM |
| Appending to file on remote host via SSH | splooge | Programming | 10 | 7th June 2008 10:23 PM |