LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-26-2005, 09:33 AM   #1
max2004
Member
 
Registered: Feb 2005
Posts: 57

Rep: Reputation: 15
SSH connection in graphical mode (X-Server?)


Hi everyone,

I'm usually connecting to a remote Sun Solaris machine via SSH from my shell. Recently I heard that there is a possibility to connect to that machine in graphical mode (i.e. not from the shell/ not in text-mode). Unfortunately the person who told me was running Windows, so he couldn't tell me how to do it in Linux. He used a tool called X-Deep (sorry, I can't post the URL, because the board does not allow new people to do so [to prevent spamming], but it's Googles first result). Does anyone know what I mean and knows a similar program for Linux?

Thanks in advance,
max

Edit: I'm running Fedora Core 3 (maybe not so important, but anyway...)

Last edited by max2004; 02-26-2005 at 09:36 AM.
 
Old 02-26-2005, 09:51 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what you want isn't actually a program per se... did you read abuot xdeep32 on here? i'd never heard of it this morning until someone else asked about it.. and now i've got it on my XP laptop... good timing if it's a coincidence.

one way to do what you want is to run X-deep in "normal" mode. bascially this will intercept calls to port 6000, which is the X server port, and handle the drawing of them. SO... load Xdeep in "normal" mode, then just ssh to somewhere and run an X application, and it should appear. X-deep will just run invisibly to you. you'll need ssh to be enabled with X11 forwarding though, which is normally on by default. it's just a tick box in puTTY if you're already using that for the SSH things.

alternatively you can use X-deep (or any other win32 based X server, e.g. xwin32, eXceed, Xwinlogin) to start an XDMCP connection to any UNIX system allowing external configurations to their XDM service. using this you point your x-deep system at that box and ping... you'll get a full screen login, just like if you were sat in front of it with a graphical login running.

personally for ease, speed and usability, i'd suggest the first option (X forwarding), but if you want to basically use your local system as a thin client to a UNIX box, then the second is more what you want.
 
Old 02-26-2005, 09:55 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok.

I just realised that's totally the wrong answer huh??!

darn! i was proud of that!

OK, well from FC3 to solaris is easier really... again X11 forwarding is normally enabled by default, system wide configuration is normally /etc/ssh/ssh_config, which should explain what to do inside there (but that will probably be nothign at all...)

and for XDMCP... again, the remote system needs XDMCP enabled, and if it is, then just run "X :1 -query ip.of.sun.box" and hit enter... again, you should get a graphical login, running on a totally seperate screen. this was you'll be pretty hard pushed to tell which is the local FC3 X connection, and which is on solaris. other than the Solaris one probably being real ugly.....

comparing windows and unix forwarding you'll see how much more generic things are under unix.. there's just so little to actually configure, unless you really really want to...
 
Old 02-26-2005, 10:20 AM   #4
max2004
Member
 
Registered: Feb 2005
Posts: 57

Original Poster
Rep: Reputation: 15
Wow! Thanx for these two answers in absolutly no time
I opened a shell and ran "X :1 -query ip.of.sun.box" (before you ask: yes I did replace ip.of.sun.box with it's real IP ) and as you told me a new screen opened. But unfortunatly it was and stayed black, with a white cross-shaped mousecursor (which I could move). So I switched back to my box using CTRL+ALT+F7 and on the shell it said:
Code:
XDM: too many retransmissions, declaring session dead
. I closed the shell an now every 2 minutes the screen automatically switches back to the black screen with the white cursor (I'm restarting now, to get rid of this effect).

Any idea?
Thanx again, max
 
Old 02-26-2005, 10:54 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
can't help much. i googled for that error, and, as i thought it would be, appears to be a solaris/cde issue. i guess i'd suggest not using that version of CDE. quite who wants to use CDE ever is beyond me though... try gnome or just a simple fvwm / twm login to at least see if that fixes the issue....
 
Old 02-26-2005, 11:00 AM   #6
max2004
Member
 
Registered: Feb 2005
Posts: 57

Original Poster
Rep: Reputation: 15
Okay, thanks for your help! I also tried to connect to an OpenBSD system - same problem.

Quote:
try gnome or just a simple fvwm / twm login to at least see if that fixes the issue....
how...?
 
Old 02-27-2005, 03:06 AM   #7
Malaklyps
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
ssh -X user@machine should do the trick. It enables X11 forwarding.

You still have to type the commands (e.g. acroread), but now the Acrobad Reader will actually open.

I hope this helps.
 
Old 02-27-2005, 03:54 AM   #8
max2004
Member
 
Registered: Feb 2005
Posts: 57

Original Poster
Rep: Reputation: 15
Thanks you for your posts. I tried
Code:
ssh -X user@machine
and when I gave the command gvim, the gvim window actually opened! But then it closed again and on the shell I could read:
Code:
BadWindow (invalid Window parameter)
Vim: Got X error
Vim: Finished.
31;0MBadAccess (attempt to access private resource denied)
Vim: Got X error
Vim: Finished.
31;0M
When I tried acroread I got:
Code:
X Error of failed request:  BadAtom (invalid Atom parameter)
  Major opcode of failed request:  18 (X_ChangeProperty)
  Atom id in failed request:  0x207
  Serial number of failed request:  140
  Current serial number in output stream:  141
I tried several other programs but they all crashed

If anyone has some idea of what I could try, I'd be glad to hear it.

Thanks for you help,
max
 
Old 02-27-2005, 04:34 AM   #9
Malaklyps
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
Hm. Try ssh -Y user@machine.
 
Old 02-27-2005, 05:32 AM   #10
max2004
Member
 
Registered: Feb 2005
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
Hm. Try ssh -Y user@machine.
It works!! Thank you so much Malaklyps and acid_kewpie!
 
Old 03-13-2005, 10:18 AM   #11
netkepala
Member
 
Registered: Sep 2002
Distribution: Red Hat
Posts: 68

Rep: Reputation: 15
Logging to Solaris box

Hi All,

Would the following commands login to Solaris box with FULL gui ?

From Linux :

1. Xterm
2. ssh -X user@sunbox
3. XWin


does it work?
 
Old 01-24-2012, 05:34 AM   #12
ron2794
LQ Newbie
 
Registered: May 2011
Posts: 9

Rep: Reputation: 0
well ssh -Y still doesn't work for me, however ssh -X is working perfectly....
 
Old 01-25-2012, 05:19 AM   #13
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
The thread is somewhat old but if it’s still of use: you can define default settings in /etc/ssh/ssh_config or your personal ~/.ssh/config to include:
Code:
Host *
  FowardX11 yes
  FowardX11Trusted yes
  ForwardAgent yes
to have it applied all the time automatically without further command line options.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH connection through companies proxy server rydl Linux - Networking 2 10-26-2005 09:08 AM
ssh connection closed by server m_yates Linux - Security 3 08-10-2005 03:12 PM
How to; Suse9.3 prof. text mode to graphical mode anjum Linux - Software 5 07-20-2005 11:36 PM
SSH - X server connection problem satimis Linux - Networking 5 04-29-2004 02:29 AM
Help with Linux Server Hacks book: Turbo-mode SSH logins ToBe Linux - Security 4 12-21-2003 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration