This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
* - <jagginess@yahoo.ca> [2003-01-16 23:50:35 -0500]: > 1-c:\ dos prompt > 2-entered c:\cygwin\bin > 3-typed bash --login -i in dos box: "me@localmachine" > 4-xinit > 5-"xterm window": typed 'ssh -l username -XC domainname' > 6-fun: now i'm "remote@domain.com" at remote domain and can fire up > 'startkde' or 'gnome-session', or any other window manager available > remotely... That's a bit of a roundabout way to do it...why not just make a shortcut to "c:\cygwin\usr\X11R6\bin\startxwin.bat"? > my question is if there's a way to pass username, password and domain > name with a startup script so i don't have to be prompted (starting > right after local login with bash)? To preload the username, you need to create ~/.ssh/config and specify the "User" option. As for not prompting for the password, to do that you'll need to create a RSA/DSA key pair and use ssh-agent. Check out the following manpages for this stuff: man ssh_config man ssh-keygen man ssh-agent > i'm pretty new to this and i'm definitely no expert, i'm sure someone > has the answer to this; i'm also thinking its possible that a clean > xterm can be requested to be opened from the remote side: a shell with > 'remote@domain.com' after ssh has successfully logged me in without > prompting me. (after it has run in the background while starting up > with the local X-server) You certainly could type "xterm" and have it run...as for doing it automatically, you might find that running X applications automatically on login is more trouble than it's worth. ;) If you want to, though, I would imagine you could put "xterm" in your ~/.bash_login or whatever. > i don't want to depend on any window driver wrappers for ssh. and as > you may know the danger of doing this...if i start kde or gnome, i > can't kill this xterm box without closing up all of kde or gnome in > one shot... Well of course, that's because the ssh client is forwarding the port that those applications are using...kill ssh and you kill the port forwarding. -- ------------------------------------------------------------------------ John Buttery (Web page temporarily unavailable) ------------------------------------------------------------------------
Attachment:
msg00216/pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |