DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default ssh X while host is using X server .. possible ?

Hi !!

Is it possible to ssh with -X support to a host using X at the same time ?
Reply With Quote
  #2   (View Single Post)  
Old 25th July 2012
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Default

Yes.
Reply With Quote
  #3   (View Single Post)  
Old 25th July 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

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
Reply With Quote
  #4   (View Single Post)  
Old 25th July 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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 08:19 PM
Appending to file on remote host via SSH splooge Programming 10 7th June 2008 10:23 PM


All times are GMT. The time now is 06:25 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick