Re: [zones-discuss] ssh hangs and terminals

2010-04-14 Thread Joerg Schilling
Matt Harrison  wrote:

> If I force the command from ssh (ssh m...@xxx /bin/bash) I can type and
> run commands but I don't get a prompt.

This will not allocate a pseudo tty.

You may still see a prompt by adding the shell -i option (force interactive).

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] ssh hangs and terminals

2010-04-14 Thread Nicolas Williams
On Wed, Apr 14, 2010 at 06:34:58PM +0100, Matt Harrison wrote:
> Firstly, and this is a fairly basic thing but something I've always had
> problems with: No matter what terminal setting I choose when I first
> configure the zone, terminal applications such as Vim don't display
> normally. When zlogin'd to a zone, Vim will display in a fixed size and
> displays such oddies as only changing the last line when scrolling.

zlogin has had a number of bugs filed against it.  I'm not sure what its
state is, but even without those bugs I'd recommend ssh over zlogin
except when you want access to the zone's console.

> I've had many problems with Vim and terminal emulations over the years
> but I've never managed to solve this one.

I've never had problems with VIM.

> To combat the Vim problem, I thought that it might work better when
> ssh'ing in from a working machine (the global zone). Unfortunately,
> after creating a user and home directory, ssh'ing in just hangs after
> the motd.
> 
> If I force the command from ssh (ssh m...@xxx /bin/bash) I can type and
> run commands but I don't get a prompt.

You're missing -t.

> After some googling around I tried adding the -t option to ssh but that
> just hangs as well (totally locks up the terminal, have to kill manually).

Can you tell us more about what's going on in the client side?

Nico
-- 
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] ssh hangs and terminals

2010-04-14 Thread Matt Harrison
On Wed, Apr 14, 2010 at 07:44:41PM +0200, Mark Phalan wrote:
> On Wed, 2010-04-14 at 18:34 +0100, Matt Harrison wrote:
> > I've just installed a basic zone on a current dev build of OS, I'm not a
> > bigtime zones user but I thought I'd play around with the feature some more.
> > 
> > Firstly, and this is a fairly basic thing but something I've always had
> > problems with: No matter what terminal setting I choose when I first
> > configure the zone, terminal applications such as Vim don't display
> > normally. When zlogin'd to a zone, Vim will display in a fixed size and
> > displays such oddies as only changing the last line when scrolling.
> > 
> > I've had many problems with Vim and terminal emulations over the years
> > but I've never managed to solve this one.
> > 
> > To combat the Vim problem, I thought that it might work better when
> > ssh'ing in from a working machine (the global zone). Unfortunately,
> > after creating a user and home directory, ssh'ing in just hangs after
> > the motd.
> > 
> > If I force the command from ssh (ssh m...@xxx /bin/bash) I can type and
> > run commands but I don't get a prompt.
> > 
> > After some googling around I tried adding the -t option to ssh but that
> > just hangs as well (totally locks up the terminal, have to kill manually).
> > 
> > I'm probably wrong but I believe all this could be related however its
> > above me so I thought I'd ask the experts.
> 
> You may be hitting the issue with /dev/ptmx
> http://defect.opensolaris.org/bz/show_bug.cgi?id=12380
> 
> The workaround is to run "chmod 666 /dev/ptmx" as root.
> 
> -M
> 

Thats lovely, thanks. I can now ssh in perfectly and as a side effect, Vim now 
seems
to work normally. Thanks

Matt
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] ssh hangs and terminals

2010-04-14 Thread Mark Phalan
On Wed, 2010-04-14 at 18:34 +0100, Matt Harrison wrote:
> I've just installed a basic zone on a current dev build of OS, I'm not a
> bigtime zones user but I thought I'd play around with the feature some more.
> 
> Firstly, and this is a fairly basic thing but something I've always had
> problems with: No matter what terminal setting I choose when I first
> configure the zone, terminal applications such as Vim don't display
> normally. When zlogin'd to a zone, Vim will display in a fixed size and
> displays such oddies as only changing the last line when scrolling.
> 
> I've had many problems with Vim and terminal emulations over the years
> but I've never managed to solve this one.
> 
> To combat the Vim problem, I thought that it might work better when
> ssh'ing in from a working machine (the global zone). Unfortunately,
> after creating a user and home directory, ssh'ing in just hangs after
> the motd.
> 
> If I force the command from ssh (ssh m...@xxx /bin/bash) I can type and
> run commands but I don't get a prompt.
> 
> After some googling around I tried adding the -t option to ssh but that
> just hangs as well (totally locks up the terminal, have to kill manually).
> 
> I'm probably wrong but I believe all this could be related however its
> above me so I thought I'd ask the experts.

You may be hitting the issue with /dev/ptmx
http://defect.opensolaris.org/bz/show_bug.cgi?id=12380

The workaround is to run "chmod 666 /dev/ptmx" as root.

-M

___
zones-discuss mailing list
zones-discuss@opensolaris.org


[zones-discuss] ssh hangs and terminals

2010-04-14 Thread Matt Harrison
I've just installed a basic zone on a current dev build of OS, I'm not a
bigtime zones user but I thought I'd play around with the feature some more.

Firstly, and this is a fairly basic thing but something I've always had
problems with: No matter what terminal setting I choose when I first
configure the zone, terminal applications such as Vim don't display
normally. When zlogin'd to a zone, Vim will display in a fixed size and
displays such oddies as only changing the last line when scrolling.

I've had many problems with Vim and terminal emulations over the years
but I've never managed to solve this one.

To combat the Vim problem, I thought that it might work better when
ssh'ing in from a working machine (the global zone). Unfortunately,
after creating a user and home directory, ssh'ing in just hangs after
the motd.

If I force the command from ssh (ssh m...@xxx /bin/bash) I can type and
run commands but I don't get a prompt.

After some googling around I tried adding the -t option to ssh but that
just hangs as well (totally locks up the terminal, have to kill manually).

I'm probably wrong but I believe all this could be related however its
above me so I thought I'd ask the experts.

Thanks in advance

Matt
___
zones-discuss mailing list
zones-discuss@opensolaris.org