LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 07-19-2011, 11:20 PM   #1
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 362

Rep: Reputation: 38
Question ssh X11 forwarding


Following is assumed:
1. user connects to a remote server without the X11 forwarding -X option (ssh someserver)
2. ForwardX11Trusted is set to no in the /etc/ssh/ssh_config file of the user's system

Question:
After the ssh connection is made without the -X option, is it possible to enable the X11 forwarding?

Code:
[abcd@someclient ~]$ ssh someserver
...
...
[abcd@someserver ~]$
Oops, forgot the -X option, how do I enable X11 now? I don't want to disconnect and reconnect using ssh -X.

Thanks,

Last edited by the_gripmaster; 07-20-2011 at 12:36 AM. Reason: clarification of the question
 
Old 07-20-2011, 11:43 AM   #2
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,320

Rep: Reputation: 252Reputation: 252Reputation: 252
You can put in your personal ~/.ssh/config:
Code:
Host *
    ForwardX11 yes
    ForwardX11Trusted yes
so that itís set in the future automatically all the time.
 
Old 07-21-2011, 03:20 AM   #3
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 362

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by Reuti View Post
You can put in your personal ~/.ssh/config:
Code:
Host *
    ForwardX11 yes
    ForwardX11Trusted yes
so that itís set in the future automatically all the time.
Thanks but I still would like to know the answer to my original question.
 
Old 07-21-2011, 05:26 AM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,320

Rep: Reputation: 252Reputation: 252Reputation: 252
I’m not aware of any option to create tunnels later on besides the initial connection. Your request would be similar to add -L or -R options later on and also maybe to remove them individually again. I would assume it’s not implemented for safety reasons. You could add tunnels without authentication then as the connection is already established.
 
  


Reply

Tags
ssh, x11 forwarding


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
help with x11 forwarding over ssh bret381 Linux - Networking 9 04-12-2010 09:37 AM
X11 Forwarding using ssh back2games Linux - Desktop 2 03-06-2009 09:45 PM
x11 forwarding over ssh mantonr Linux - Software 1 07-15-2008 11:22 AM
Need help forwarding X11 via SSH buckwheat12 Linux - Networking 15 05-02-2007 04:08 PM
X11 forwarding over SSH SirSlappy Linux - Networking 1 10-18-2005 02:37 PM


All times are GMT -5. The time now is 12:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration