Link to home
Start Free TrialLog in
Avatar of rtod2
rtod2Flag for United States of America

asked on

suse, enable x11 forwarding

How do I enable remote connections, connect as root, and x11 forwarding for Suse 11 Enterprise Server?
Avatar of rindi
rindi
Flag of Switzerland image

Never connect as root, that is unsafe. Rather use a normal user account to connect to the server and then use sudo if your application requires root access.

Install openssh on your server. Then make sure your sshd_config file has the following entries:

X11Forwarding yes

# Authentication
PermitRootLogin no

When you connect to this use the following syntax:

ssh -Y UserName@IPOfServer

After that when you start a tool that is GUI based, that tool is started as a window on your PC. If you need to start that tool as root, then just start it with sudo, like this:

sudo krusader

Make sure the user's name or one of the groups the user is a member of is added in the /etc/sudoers file (I usually use the wheel group for this, as that is a superuser group). The entry in sudoers for wheel would look like this:

%wheel ALL=(ALL) ALL

Also make sure port 22 isn't blocked by the server's firewall

With SUSE you can probably set this all up automatically through Yast, without having to edit the files manualy.
do not connect as root - ever.
for sue you do not use sudo, but you use `sux`command to launch X apps as root.
Avatar of rtod2

ASKER

OK so question change.
Using the SUSE gui if possible...
What specific steps do I take within suse to prepare for remote connection via xming to it's gdm dashboard?
What specific steps do I take within xming to get it to connect?
you launch startgnome over ssh
Avatar of rtod2

ASKER

I'm still not getting the whole picture here.  :(
I am getting a black blip when connecting to suse.  I'm lost...



Using xming and the SUSE GUI,

1. What specific steps do I take within suse to prepare for remote connection via xming to it's gdm dashboard?
2. What specific steps do I take within xming to get it to connect?

1. none
2. start xlaunch and proceed as I described.
Avatar of rtod2

ASKER

Still a blip gheist  - here is each screen as I step through it
  1. xlaunch
  2. multiple windows
  3. start a program
  4. startgnome, using ssh, hostname, username
  5. additional parameters for SSH -Y

You have to install "portable putt" or putty for ssh for xlaunch to work with ssh.
Avatar of rtod2

ASKER

I left out a step I was doing.
  1. xlaunch  > next
  2. multiple windows  > next
  3. start a program  > next
  4. startgnome, using ssh.exe, hostname, username > next
  5. point to ssh.exe > next
  6. additional parameters for ssh, -Y > next
Still just a blip...?
Try SSH connection with putty alone (with X forwarding)
Then just launch Xming server in listening mode.
run xdpyinfo in session - post result here.
ASKER CERTIFIED SOLUTION
Avatar of rtod2
rtod2
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial