Putty X11 problem

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
wittig
Newbie
Newbie
Posts: 2
Joined: Wed Dec 21, 2011 9:35 am

Putty X11 problem

Post by wittig »

I use WinSCP to connect to remote server with wine. I use Putty as a terminal, but it seems, I cannot use X11 tunneling to run graphical applicatoins from this remote server, although X11 is enabled in Putty. Is there a solution for that?
Martin Gregorie

Putty X11 problem

Post by Martin Gregorie »

On Wed, 2011-12-21 at 08:52 -0600, wittig wrote:
I use WinSCP to connect to remote server with wine. I use Putty as a
terminal,
Why use Wine to run a text-only ssh client when you can use the Linux
native ssh as a terminal and either scp and sftp for file transfers?
Enable X-11 forwarding for the Linux ssh client. This won't give you a
desktop on the remote server, but will let you run graphical
applications from the command line.

Have you looked at using VNC, which does provide a remote desktop? It
needs to be installed at both ends but, once installed, can be used
without bothering the sysadmins. You can start the VNC server from an
ordinary ssh session before logging out leaving it running. Then you can
use either the VNC client or a web browser to login to the vnc server
and start a remote desktop.
but it seems, I cannot use X11 tunneling to run graphical applicatoins
from this remote server, although X11 is enabled in Putty. Is there a
solution for that?
Not as far as I know. PuTTY is a text only ssh client that emulates a
24x80 terminal. X-11 forwarding is not supported by it since that
requires an X-11 server to be up and running, something that is most
unlikely to be available on a Windows box that's running PuTTY.
If full X-11 graphics is required under Windows, there'd be a copy of a
graphical package such as Cygwin/X, Exceed or Xming installed and you
wouldn't be bothering with PuTTY.


Martin
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Putty X11 problem

Post by jjmckenzie »

On Wed, Dec 21, 2011 at 7:52 AM, wittig <[email protected]> wrote:
I use WinSCP to connect to remote server with wine. I use Putty as a terminal, but it seems, I cannot use X11
tunneling to run graphical applicatoins from this remote server, although X11 is enabled in Putty. Is there a solution for
that?
Why are you using a Windows product on Linux when there are graphical
Linux SCP/SFTP clients available?

Please try using them first before using a product like WinSCP through Wine.

James
wittig
Newbie
Newbie
Posts: 2
Joined: Wed Dec 21, 2011 9:35 am

Post by wittig »

I know - it sounds really stupid to use winscp having native ssh terminal. The problem is following - I need to make a tunneling connection - to connect to [email protected] via [email protected] (both passwords protected). If I first do "ssh -X [email protected]" and then "ssh -X [email protected]" I do have the connection - can transfer files, etc., but X11 does not work.

In windows winscp+Putty could do it very easily. But what would be the way to do it via Linux terminal?
xyz32
Level 2
Level 2
Posts: 19
Joined: Sun Jul 24, 2011 8:06 am

Post by xyz32 »

Have you tried ssh tunneling?

ssh -lxyz -v -C -L 8080:localhost:8080 remoteHost1

This will connect you to remotehost1 and forward any local connection on port 8080 to a connection on the remotehost1 port 8080

you can also set a 2 way ssh tunnel:
http://fixunix.com/ssh/443096-howto-set ... ost1289281
xyz32
Level 2
Level 2
Posts: 19
Joined: Sun Jul 24, 2011 8:06 am

Post by xyz32 »

also if you don't fancy "scp" just install mc and open the "Left" or "Right" menu (F9) and select "Shell link". This will offer you a WinSCP like functionality.
For graphical sftp I use Krusader.
Locked