On 12/02/2011 20:26, Richard Kettlewell wrote:
> Bilbo Warble<(E-Mail Removed)> writes:
>> I have set up two slackware boxen, one that handles SSH logins and one
>> running X-Windows.
>> I would like to set up a Windows workstation to access the X-Windows
>> remotely. I am using putty to establish the connection and I have
>> enabled tunneling to the X-Windows box for SSH - I can log on to the
>> remote session, X-Windows will not play.
>>
>> I am using xwinlogon - http://www.calcmaster.net/visual-c++/xwinlogon/
>>
>> I have set the server to localhost:6005 (the redirected port) with a
>> connection type of SSH.
>
> What exactly have you fowarded to local port 6005? You shouldn't need
> to do that at all.
Sorry, I've not made myself clear.
The sshd server is the only server that will accept incoming
connections, the X-Windows server is on the same internal network. I use
PuTTY to connect to the SSH server and I route a connection L6005
R{internalX-WindowsServerIPaddress}:22
I want to keep the sshd server as the only device accepting incoming
connections as the fewer ports open, the lower the risks. It's all set
up to only accept key connections and the users are provided with a USB
stick with the key, putty, etc. in a cheapscate form of 2FA.
> Xwinlogin (in the mode you describe) expects to connect to an SSH server
> which allows X11 forwarding, and then execute a command such as startkde
> over that connection. IOW it sets up the forwarding, it does not expect
> you to set it up separately. You should provide the address of the
> target machine here, not a forwarded connection.
the X server that I am trying to connect to has X11Forwarding set to yes.
> Xwinlogon seems to want to run a whole Linux desktop environment inside
> the forwarded session, which may or may not be what you want.
I have used Xwinlogon in a closed environment using XDMCP quite happily,
I was hoping to achieve similar (albeit slower) results over the Internet.
> The alternative approach is to start an X server and then connect to
> your Linux system with PuTTY with X forwarding enabled and execute
> individual applications from within that. Xming seems to be adequately
> suited to this (I'm not familiar with the alternatives though).
>
> (Remember: X server = the display, X clients = the applications.)
As I said, I'm quite happy with Xwinlogon although that does not mean
I'm not open to other (OSS) possibilities. If I have no joy with
Xwinlogon, I'll happily switch to another software.
The big issue is that I'm not sure if the X server is talking through
the tunnel I've created. Unless I've missed something obvious, I'll have
to break out tcpdump to see if I can see what's going on.