This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: X via SSH (was: New (Delphi) xlauncher)
With a combination of ssh-keygen, ssh-agent, ssh-add and a utility I
found in a Japanese website (win-ssh-askpass) I got pretty much what I
want. But I see two disadvantages from my ideal.
1) I have to have a local key on my laptop which I travel with, so is
not secure.
2) It seems like using a sledge hammer to crack a nut. Wouldn't it be
better if ssh could also use $SSH_ASKPASS (just like ssh-sdd) for a
password getting program? In fact it is supposed to do that but it
doesn't seem to work. But thats a question for a SSH list...
For those that are interested http://www.ganaware.jp/S/win-ssh-askpass/.
It is designed to compile and work with cygwin.
And here is my .xinitrc:
----------------------------------------
#!/bin/sh
export SSH_ASKPASS=win-ssh-askpass
ssh-add </dev/null
if [ -f $HOME/.Xmodmap ]; then
xmodmap $HOME/.Xmodmap
fi
ssh -X -C me@host "startkde"
----------------------------------------
Then, after setting up keys ('ssh-keygen -t rsa' on local and copy
.ssh/id_rsa.pub key to remote ~/ssh/authorized_keys2), just run
'ssh-agent xinit' and you're off to the races.
Bye,
Nick
On Tue, 2002-07-23 at 13:07, Robert Collins wrote:
===
----- Original Message -----
From: "Nick THOMPSON" <nickthompson@agere.com>
To: "cygwin-xfree Mailing List" <cygwin-xfree@cygwin.com>
Sent: Tuesday, July 23, 2002 9:22 PM
Subject: X via SSH (was: New (Delphi) xlauncher)
> What I could do with is a mode that allows an X session to be setup
> through an SSH tunnel. So I need an SSH client that DOESN'T give me a
> shell, but supports an X11 tunnel, prompts me for the SSH passwd and
> runs a single command (the remote ~/.xinitrc say, and pipes the output
> to a local file). Even better if I can select from a list of hosts at
> startup. Does this xlauncher support that?
>
> Currently, I'm using putty, but it asks for the passwd in a shell
window
> which you have to keep open. Any other ideas?
man ssh-agent.
Rob