public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
To: Jacob A <jacob@minpost.nu>
Cc: cygwin@cygwin.com
Subject: Re: Openssh client under X
Date: Sun, 20 Oct 2002 14:48:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.44.0210201526040.8300-100000@slinky.cs.nyu.edu> (raw)
In-Reply-To: <Pine.BSO.4.44.0210202046090.12123-100000@britney>

Umm, how embarrassing...  I got confused between OpenSSH and SSH Secure
Shell.  Apologies to all.

Jay,

ssh has a special mode where it forwards X requests over the ssh
connection.  It's called X forwarding, and is enabled by either the -X
command line option or a special entry in ~/.ssh/config (I forget exactly
which, it's easily found out from the man page).  If the special entry is
present, ssh will attempt to set up X forwarding, *but only if DISPLAY is
set*.  That was the reason I asked about the DISPLAY setting.

You can try running ssh as 'ssh -x', which disables X forwarding
regardless of the config file.  If all you need is to run tty mode
programs on the server, or if your machine is reachable and open to X
packets from the server, that should be sufficient.  If 'ssh -x' works,
you could then edit the config file and comment out the EnableXForwarding
(or smth like that) line.

If you do need to tunnel X packets through ssh when running X, you'll need
to debug this further.  The message I mentioned might be of help then.
	Igor

On Sun, 20 Oct 2002, Jacob A wrote:

> ok.
>
> maybe my last post was somewhat unclear.
>
> What I want is to be able to run is:
>
> $ ssh user@host
>
> ...from an xterm window under cygwin/XFree86. Whenever I try that, it
> connects, and then disconnects right after I get connected. If I run ssh
> from cygwin without running X, it works like a charm. Correct me if I am
> wrong, but the DISPLAY variable should have nothing to do with this.
> All I want is to login on the other machine.
>
> ssh -v -v -v tells me "channel 0 is dead" _after_ I type in the password.
> My .profile runs on the remote machine, and then I get disconnected. Very
> frustrating.
>
> Why does it work if I dont run X?
>
> I would like to test connecting to an ssh server with ssh -D. But I can't
> where I am running this.
>
> Noone else has come across this problem?
>
> uh, again - I am not a subscriber to the list, so please mail me if you
> think you know whats going on here.
>
> /jay.
>
> ----------------------------------------
> "what we do in life echoes in eternity."
>                - Maximus Decimus Meridus
>
> On Sun, 20 Oct 2002, Igor Pechtchanski wrote:
>
> > On Sun, 20 Oct 2002, Jacob A wrote:
> >
> > > Hey there,
> > >
> > > I have a real weird problem with running the openssh client under X. When
> > > I connect to another machine via ssh, it prompts me for the password, and
> > > then the session is terminated just after I am logged in.
> > >
> > > unfortunately, I dont have root access on the machine I want to ssh to, so
> > > I cant start sshd with -D there.
> > >
> > > It works perfectly when I do it without starting X.
> > >
> > > Anyone else come across this problem?
> > >
> > > I'm not a subscriber to the list, so please reply to me as well as the
> > > list if you have any input.
> > >
> > > /jay.
> >
> > Jay,
> >
> > I assume you want X forwarding when you're running X.  If not, just
> > turning it off might do the trick.
> >
> > Does OpenSSH work if you don't run X but set DISPLAY in your system
> > control panel?
> > Does OpenSSH have a -v flag or a verbose option?  If so, it might help.
> > If not, does cygwin's 'ssh -X' work (with and without DISPLAY set)?
> > If you can reproduce the problem with cygwin's ssh, use the -v option for
> > some additional debug info.
> >
> > The following might also be an instructive read:
> > http://cygwin.com/ml/cygwin-xfree/2002-10/msg00065.html
> >       Igor

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

  reply	other threads:[~2002-10-20 19:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-20  9:19 Jacob A
2002-10-20 13:14 ` Igor Pechtchanski
2002-10-20 13:33   ` Jacob A
2002-10-20 14:48     ` Igor Pechtchanski [this message]
2002-10-20 15:23       ` Jacob A
2002-10-20 16:11 Gen Zhang
2002-10-20 16:50 ` Jacob A
2002-10-20 20:30   ` Igor Pechtchanski
2002-10-20 19:48 Gareth Pearce
2002-10-21 13:31 ` Jacob A

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.44.0210201526040.8300-100000@slinky.cs.nyu.edu \
    --to=pechtcha@cs.nyu.edu \
    --cc=cygwin@cygwin.com \
    --cc=jacob@minpost.nu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).