* Openssh client under X
@ 2002-10-20 9:19 Jacob A
2002-10-20 13:14 ` Igor Pechtchanski
0 siblings, 1 reply; 10+ messages in thread
From: Jacob A @ 2002-10-20 9:19 UTC (permalink / raw)
To: cygwin
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.
----------------------------------------
"what we do in life echoes in eternity."
- Maximus Decimus Meridus
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Openssh client under X
2002-10-20 9:19 Openssh client under X Jacob A
@ 2002-10-20 13:14 ` Igor Pechtchanski
2002-10-20 13:33 ` Jacob A
0 siblings, 1 reply; 10+ messages in thread
From: Igor Pechtchanski @ 2002-10-20 13:14 UTC (permalink / raw)
To: Jacob A; +Cc: cygwin
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Openssh client under X
2002-10-20 13:14 ` Igor Pechtchanski
@ 2002-10-20 13:33 ` Jacob A
2002-10-20 14:48 ` Igor Pechtchanski
0 siblings, 1 reply; 10+ messages in thread
From: Jacob A @ 2002-10-20 13:33 UTC (permalink / raw)
To: cygwin; +Cc: Jacob A
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Openssh client under X
2002-10-20 13:33 ` Jacob A
@ 2002-10-20 14:48 ` Igor Pechtchanski
2002-10-20 15:23 ` Jacob A
0 siblings, 1 reply; 10+ messages in thread
From: Igor Pechtchanski @ 2002-10-20 14:48 UTC (permalink / raw)
To: Jacob A; +Cc: cygwin
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Openssh client under X
2002-10-20 14:48 ` Igor Pechtchanski
@ 2002-10-20 15:23 ` Jacob A
0 siblings, 0 replies; 10+ messages in thread
From: Jacob A @ 2002-10-20 15:23 UTC (permalink / raw)
To: cygwin
Thanx for the input!
I believe "ssh -x" is the default behaviour, but even when I say -x I get
the same symptoms.
What really confuses me is that it all works like a charm if I run:
$ ssh <ip-address of host I want to connect to here>
...without starting X. (i.e click on the "cygwin icon"
(C:\cygwin\cygwin.bat) -- and start an interactive shell (bash) in the
cygwin environment.
But, if I start X, (which I do with 'startx') -- and then open up an xterm
and fire away the same command ($ ssh <ip-addr>), I get connected but
thrown out right away. I mean, I'm running the same binary -- what could
be different? This leads me to believe that the problem could NOT be on
the server side, it must be my cygwin that does _something_ differently
when I run the Xserver.
Does this work for you? Can you use ssh to login to a remote host from an
xterm running in cygwin/XFree????
Again - I am not primarly interested in "tunneling X" -- I know how that
works -- the problem is connecting with ssh at all.
Any more thoughts?
(again, I'm not subscribing to the list... please email me).
/Jay
----------------------------------------
"what we do in life echoes in eternity."
- Maximus Decimus Meridus
On Sun, 20 Oct 2002, Igor Pechtchanski wrote:
> 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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Openssh client under X
@ 2002-10-20 16:11 Gen Zhang
2002-10-20 16:50 ` Jacob A
0 siblings, 1 reply; 10+ messages in thread
From: Gen Zhang @ 2002-10-20 16:11 UTC (permalink / raw)
To: cygwin; +Cc: Jacob A
Try 'ssh -X'. With all capitalisations.
Hope that helps.
Genneth.
-----Original Message-----
From: Jacob A [mailto:jacob@minpost.nu]
Sent: 20 October 2002 21:06
To: cygwin@cygwin.com
Subject: Re: Openssh client under X
Thanx for the input!
I believe "ssh -x" is the default behaviour, but even when I say -x I
get
the same symptoms.
What really confuses me is that it all works like a charm if I run:
$ ssh <ip-address of host I want to connect to here>
...without starting X. (i.e click on the "cygwin icon"
(C:\cygwin\cygwin.bat) -- and start an interactive shell (bash) in the
cygwin environment.
But, if I start X, (which I do with 'startx') -- and then open up an
xterm
and fire away the same command ($ ssh <ip-addr>), I get connected but
thrown out right away. I mean, I'm running the same binary -- what could
be different? This leads me to believe that the problem could NOT be on
the server side, it must be my cygwin that does _something_ differently
when I run the Xserver.
Does this work for you? Can you use ssh to login to a remote host from
an
xterm running in cygwin/XFree????
Again - I am not primarly interested in "tunneling X" -- I know how that
works -- the problem is connecting with ssh at all.
Any more thoughts?
(again, I'm not subscribing to the list... please email me).
/Jay
----------------------------------------
"what we do in life echoes in eternity."
- Maximus Decimus Meridus
On Sun, 20 Oct 2002, Igor Pechtchanski wrote:
> 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/
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Openssh client under X
2002-10-20 16:11 Gen Zhang
@ 2002-10-20 16:50 ` Jacob A
2002-10-20 20:30 ` Igor Pechtchanski
0 siblings, 1 reply; 10+ messages in thread
From: Jacob A @ 2002-10-20 16:50 UTC (permalink / raw)
To: Gen Zhang; +Cc: cygwin
from the ssh manpage:
<snip>
-X Enables X11 forwarding. This can also be specified on a per-host
basis in a configuration file.
<snip>
"Enables X11 forwarding". This is NOT what I want to do. I simply want to
get a login session on the remote machine.
This problem is really getting to me now...
I'm really curious to hear if anyone else on the list has got this
working?
please throw me an email if you do. thanks.
/jay.
----------------------------------------
"what we do in life echoes in eternity."
- Maximus Decimus Meridus
On Sun, 20 Oct 2002, Gen Zhang wrote:
> Try 'ssh -X'. With all capitalisations.
>
> Hope that helps.
>
> Genneth.
>
> -----Original Message-----
> From: Jacob A [mailto:jacob@minpost.nu]
> Sent: 20 October 2002 21:06
> To: cygwin@cygwin.com
> Subject: Re: Openssh client under X
>
> Thanx for the input!
>
> I believe "ssh -x" is the default behaviour, but even when I say -x I
> get
> the same symptoms.
>
> What really confuses me is that it all works like a charm if I run:
>
> $ ssh <ip-address of host I want to connect to here>
>
> ...without starting X. (i.e click on the "cygwin icon"
> (C:\cygwin\cygwin.bat) -- and start an interactive shell (bash) in the
> cygwin environment.
>
> But, if I start X, (which I do with 'startx') -- and then open up an
> xterm
> and fire away the same command ($ ssh <ip-addr>), I get connected but
> thrown out right away. I mean, I'm running the same binary -- what could
> be different? This leads me to believe that the problem could NOT be on
> the server side, it must be my cygwin that does _something_ differently
> when I run the Xserver.
>
> Does this work for you? Can you use ssh to login to a remote host from
> an
> xterm running in cygwin/XFree????
>
> Again - I am not primarly interested in "tunneling X" -- I know how that
> works -- the problem is connecting with ssh at all.
>
> Any more thoughts?
>
> (again, I'm not subscribing to the list... please email me).
>
> /Jay
>
> ----------------------------------------
> "what we do in life echoes in eternity."
> - Maximus Decimus Meridus
>
> On Sun, 20 Oct 2002, Igor Pechtchanski wrote:
>
> > 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/
>
>
>
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Openssh client under X
2002-10-20 16:50 ` Jacob A
@ 2002-10-20 20:30 ` Igor Pechtchanski
0 siblings, 0 replies; 10+ messages in thread
From: Igor Pechtchanski @ 2002-10-20 20:30 UTC (permalink / raw)
To: Jacob A; +Cc: cygwin
Jay,
I use ssh with X forwarding every day. I also use it without X forwarding
when my DISPLAY is not set, and it works fine. Here's what you should
try:
From a bash prompt in an xterm,
$ unset DISPLAY
$ ssh -v -x <youruser>@<yourhost>
(notice the lowercase 'x').
If this doesn't work, please report the results to the list. If this does
work, you have ssh X forwarding enabled in one of the ssh config files --
consult the manpage to find out where to look and disable it.
Igor
On Sun, 20 Oct 2002, Jacob A wrote:
> from the ssh manpage:
>
> <snip>
>
> -X Enables X11 forwarding. This can also be specified on a per-host
> basis in a configuration file.
>
> <snip>
>
> "Enables X11 forwarding". This is NOT what I want to do. I simply want to
> get a login session on the remote machine.
>
> This problem is really getting to me now...
>
> I'm really curious to hear if anyone else on the list has got this
> working?
>
> please throw me an email if you do. thanks.
>
> /jay.
>
> On Sun, 20 Oct 2002, Gen Zhang wrote:
>
> > Try 'ssh -X'. With all capitalisations.
> >
> > Hope that helps.
> >
> > Genneth.
> >
> > -----Original Message-----
> > From: Jacob A [mailto:jacob@minpost.nu]
> > Sent: 20 October 2002 21:06
> > To: cygwin@cygwin.com
> > Subject: Re: Openssh client under X
> >
> > Thanx for the input!
> >
> > I believe "ssh -x" is the default behaviour, but even when I say -x I
> > get the same symptoms.
> >
> > What really confuses me is that it all works like a charm if I run:
> >
> > $ ssh <ip-address of host I want to connect to here>
> >
> > ...without starting X. (i.e click on the "cygwin icon"
> > (C:\cygwin\cygwin.bat) -- and start an interactive shell (bash) in the
> > cygwin environment.
> >
> > But, if I start X, (which I do with 'startx') -- and then open up an
> > xterm
> > and fire away the same command ($ ssh <ip-addr>), I get connected but
> > thrown out right away. I mean, I'm running the same binary -- what could
> > be different? This leads me to believe that the problem could NOT be on
> > the server side, it must be my cygwin that does _something_ differently
> > when I run the Xserver.
> >
> > Does this work for you? Can you use ssh to login to a remote host from
> > an xterm running in cygwin/XFree????
> >
> > Again - I am not primarly interested in "tunneling X" -- I know how that
> > works -- the problem is connecting with ssh at all.
> >
> > Any more thoughts?
> >
> > (again, I'm not subscribing to the list... please email me).
> >
> > /Jay
> >
> > On Sun, 20 Oct 2002, Igor Pechtchanski wrote:
> >
> > > 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.
> > > >
> > > > 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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Openssh client under X
@ 2002-10-20 19:48 Gareth Pearce
2002-10-21 13:31 ` Jacob A
0 siblings, 1 reply; 10+ messages in thread
From: Gareth Pearce @ 2002-10-20 19:48 UTC (permalink / raw)
To: jacob; +Cc: cygwin
>from the ssh manpage:
>
><snip>
>
>-X Enables X11 forwarding. This can also be specified on a per-host
> basis in a configuration file.
>
><snip>
>
>"Enables X11 forwarding". This is NOT what I want to do. I simply want to
>get a login session on the remote machine.
>
>This problem is really getting to me now...
>
>I'm really curious to hear if anyone else on the list has got this
>working?
>
>please throw me an email if you do. thanks.
>
>/jay.
>
heres a few suggestions -
try unsetting DISPLAY first
try setting TERM to cygwin
try x fowarding and see if it works (despite the fact its not what you want)
modify the login scripts of the remove server so they dont do things
dependent on either a) DISPLAY or b) TERM
because if it works from cygwin bash - and not from an xterm in xwin - the
two differences which spring to mind are the fact you have your display
variable set - and the term variable will be xterm instead of cygwin.
I think the first is more likely
Gareth
_________________________________________________________________
Surf the Web without missing calls! Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Openssh client under X
2002-10-20 19:48 Gareth Pearce
@ 2002-10-21 13:31 ` Jacob A
0 siblings, 0 replies; 10+ messages in thread
From: Jacob A @ 2002-10-21 13:31 UTC (permalink / raw)
To: Gareth Pearce; +Cc: cygwin
> because if it works from cygwin bash - and not from an xterm in xwin -
the
> two differences which spring to mind are the fact you have your display
> variable set - and the term variable will be xterm instead of cygwin.
I like this track of thought. Just what I was thinking... I havent been
fiddling with this much since my last post, but for the record:
unset DISPLAY
export TERM=cygwin
...doesnt help a bit. same symptoms. And "ssh -x" doesnt help like Igor
suggested. (but thanx for the input!) My login scripts on the other
machine dont play with any variables except PATH. What windows systems
do you guys run? I'm doing all of this on an WinXP box.
But I dont see how that could matter, since it works outside
X. Work has gotten in the way of playing around with this more. If anyone
has followed this thread and have similar symptoms, I wouldnt mind sharing
experiences with ssh/X/cygwin.
Thanx everyone who gave some input. If I put more energy into this and
figure out what the problem was, I'll let ya'll know. (but dont hold your
breath, as I am swamped with "real" work.) %-)
/Jay.
----------------------------------------
"what we do in life echoes in eternity."
- Maximus Decimus Meridus
On Mon, 21 Oct 2002, Gareth Pearce wrote:
>
>
>
>
>
> >from the ssh manpage:
> >
> ><snip>
> >
> >-X Enables X11 forwarding. This can also be specified on a per-host
> > basis in a configuration file.
> >
> ><snip>
> >
> >"Enables X11 forwarding". This is NOT what I want to do. I simply want to
> >get a login session on the remote machine.
> >
> >This problem is really getting to me now...
> >
> >I'm really curious to hear if anyone else on the list has got this
> >working?
> >
> >please throw me an email if you do. thanks.
> >
> >/jay.
> >
>
> heres a few suggestions -
> try unsetting DISPLAY first
> try setting TERM to cygwin
> try x fowarding and see if it works (despite the fact its not what you want)
> modify the login scripts of the remove server so they dont do things
> dependent on either a) DISPLAY or b) TERM
>
> because if it works from cygwin bash - and not from an xterm in xwin - the
> two differences which spring to mind are the fact you have your display
> variable set - and the term variable will be xterm instead of cygwin.
>
> I think the first is more likely
>
> Gareth
>
>
> _________________________________________________________________
> Surf the Web without missing calls! Get MSN Broadband.
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
>
>
>
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2002-10-21 19:30 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-20 9:19 Openssh client under X Jacob A
2002-10-20 13:14 ` Igor Pechtchanski
2002-10-20 13:33 ` Jacob A
2002-10-20 14:48 ` Igor Pechtchanski
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
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).