Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

OpenSSH terminal / screen issue

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Tools Discussion Forum >> OpenSSH terminal / screen issue Page: [1]
Login
Message << Older Topic   Newer Topic >>
OpenSSH terminal / screen issue - May 21, '06, 3:18:13 AM   
dotequals

 

Posts: 4
Joined: May 10, '06,
Status: offline
I'm using screen and OpenSSH 4.3.0.2.2 from the Tool Warehouse on Interix SFU 3.5 on Windows XP SP2.

Screen works from a local terminal, but when I try to use screen from an SSH login, it says it can't connect to the terminal. "who" generally reports that I'm connected to /dev/ttyp0 (or ttyp1, etc.), and whenever I check the permissions on the terminal to which my SSH login is connected, it belongs to Administrator (not my account). This problem occurs with the EnableSetuidBinary bit either on or off.

On another system with the same software and OS (save for that it's running OpenSSH 4.3.0.2.1), screen does work over SSH, but SSH logins do not appear in the output of "who". I've tried "downgrading" to OpenSSH 4.3.0.2.1 by running

pkg_delete openssh-4.3.0.2.2-bin
pkg_add ftp://ftp.interopsystems.com/pkgs/3.5/openssh-4.3.0.2.1-bin.tgz

but after doing so "pkg_info" reported that the newly reinstalled OpenSSH was still 4.3.0.2.2 and the problem persists.

What's going on? Please help.

< Message edited by dotequals -- May 21, '06, 6:16:08 AM >
Post #: 1
RE: OpenSSH terminal / screen issue - May 21, '06, 1:01:17 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
As packages are updated in the warehouse the old versions are archived.
They are not left in the default ftp directory. People get reading an article
on a web site that may be month (even years old) and try and download an old
version simply because it is the version mentioned in the article.
If you want an older version then you can check in the "3.5-prev" directory.

Versions 4.3.0.2.1 did have the utmpx problem (that's your who reference).
But version 4.3.0.2.2 has the fix in it for utmpx (plus one enhancement for network
drive access via regpwd running prior). That's the only delta between the two.
I'll check into it here.

(in reply to dotequals)
Post #: 2
RE: OpenSSH terminal / screen issue - May 21, '06, 4:20:34 PM   
dotequals

 

Posts: 4
Joined: May 10, '06,
Status: offline
Rodney,

Thanks a lot for the information on downgrading.

Strangely enough, that did fix the issue -- SSH logins can now create screen sessions, which is very useful.

Although SSH logins do not appear in "who", I managed to track down which terminal mine was connected to and look at its permissions. Some of them seem slightly odd, but at least they work.

I imagine that, assuming that I'm not crazy and the fixes from 4.3.0.2.1 => 4.3.0.2.2 caused this problem, there's a way to resolve the utmpx issue and this one?

I'm still having a bit of trouble with screen itself, but that's for a different thread.

Thanks again,

Max

(in reply to Rodney)
Post #: 3
RE: OpenSSH terminal / screen issue - May 21, '06, 8:03:36 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
I loaded an earlier version (4.3.0.1.0) and saw the ownership being off.
The I loaded 4.3.0.2.1 and saw it was fine. Then I loaded 4.3.0.2.2 to
start debugging it, but the ownership was fine. And now I can't replicate it.
So there's something "touchy" in the environment I think that becomes okay and
then everything is fine after that. I'll scrub the machine and start again.

(in reply to dotequals)
Post #: 4
RE: OpenSSH terminal / screen issue - May 22, '06, 4:48:37 AM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
I've traced it down and have applied a fix to the source.
A new package is now available (4.3.0.2.3).
A code rearrangement has moved the calls that eventually lead to pututxent() to
being too early (for Interix). I've moved it to the right location now. No process
is allow to write to utmpx claiming to be another user (even Administrator/root).

(in reply to Rodney)
Post #: 5
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Tools Discussion Forum >> OpenSSH terminal / screen issue Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.031