Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

telnet vs Openssh

0 views
Skip to first unread message

willjay

unread,
Sep 3, 2003, 1:52:40 PM9/3/03
to
Will someone please, login into their Openserver 5.0.? with telnet and do a
stty -a and check the baud rate and then do the same with Openssh and do
another stty -a and report the differences in baud rate.

This may be why I am seeing a slow down in screen drawing with Openssh.

Thanks
wj


Scott McMillan

unread,
Sep 3, 2003, 3:19:51 PM9/3/03
to
On Wed, 3 Sep 2003 13:52:40 -0400, "willjay" <wil...@excite.com>
wrote:

# customquery listpatches | head -2
SCO:Unix::5.0.6Ga rs506a.Unix506.1.0a CSSA_2002_SCO_39.506.SCO.Unix
SCO:Unix::rs506a.Unix506.1.0a


This is what I get logging into my development system via ssh (using
AlphaCom on a Windoze XP system):

# ssh -V
OpenSSH_3.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f

(This OpenSSH is Roberto Zini's compilation found on Tony Lawrence's
FTP site)

# stty -a
speed 9600 baud; ispeed 9600 baud; ospeed 9600 baud; line =
0(tty);
rows = 25; columns = 80; ypixels = 0; xpixels = 0;
intr = DEL; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = ^@;
swtch = <undef>; susp = <undef>; start = ^Q; stop = ^S;
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk
-ortsfl -ctsflow -rtsflow
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl
-iuclc
-ixon -ixany -ixoff
isig icanon -xcase echo -echoe -echok -echonl -noflsh
-iexten -tostop -xclude
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel
-isscancode
-autoe -ed_emacs -ed_vi -ed_history


And now telnet (using AlphaCom again):

# stty -a
speed 38400 baud; ispeed 38400 baud; ospeed 38400 baud; line =
0(tty);
intr = DEL; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = ^@;
swtch = <undef>; susp = <undef>; start = ^Q; stop = ^S;
-parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk
-ortsfl -ctsflow -rtsflow
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon ixany -ixoff
isig icanon -xcase echo -echoe echok -echonl -noflsh
-iexten -tostop -xclude
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3
-isscancode


I'm pretty sure I see where you are heading with this, but my screen
draws faster via the ssh connection than the telnet connection (at
least in the little testing I did).


Scott McMillan

Jean-Pierre Radley

unread,
Sep 3, 2003, 3:19:36 PM9/3/03
to
willjay typed (on Wed, Sep 03, 2003 at 01:52:40PM -0400):

| Will someone please, login into their Openserver 5.0.? with telnet and do a
| stty -a and check the baud rate and then do the same with Openssh and do
| another stty -a and report the differences in baud rate.

I get 9600 under ssh, 38400 under telnet.

| This may be why I am seeing a slow down in screen drawing with Openssh.

Define "screen drawing".

Running tcsh on both the ssh and the telnet logins, I ran

time cat /usr/lib/terminfo/t*src

The results are close enought to be the same.

0.00u 0.57s 0:26.05 2.1%
0.00u 0.59s 0:26.84 2.1%

--
JP

Bela Lubkin

unread,
Sep 3, 2003, 4:04:24 PM9/3/03
to sco...@xenitec.ca
willjay wrote:

If you're seeing a slowdown, it must be due to client implementation.
You didn't say what client you're using. If the ssh client defaults to
compression _on_, try telling it to turn it off -- it may be slow at
uncompressing (though in most cases compression should actually make
things _faster_).

"baud rate" doesn't really mean anything on a pseudo-tty. Feel free to
run `stty 38400` (or `stty 921600`, for that matter) on your ssh
session. It won't make any difference.

One exception: the _application_ you're running may ask the OS what baud
rate is being used, and then act differently. Depending on how old the
app is, it may not understand OSR5 baud rates above 9600; or it may
understand 19200 and 38400, but not higher rates. In those cases it may
act oddly. For instance, the encoding for 57600 baud may "look" like 50
baud to an old app. Then it might do long delays, thinking it had to
wait for your slow terminal to catch up.

>Bela<

willjay

unread,
Sep 3, 2003, 4:46:51 PM9/3/03
to
Make a dialup connection to your server and check the differences, I'm
seeing huge slow down on dialup to my server. Openssh is not tolerable and
telnet is just fine.

Do you know how to set ssh to 38
"Scott McMillan" <sm...@usa.net> wrote in message
news:m2fclvchsu7ip5s4j...@4ax.com...

willjay

unread,
Sep 3, 2003, 4:59:02 PM9/3/03
to
explain AlphaCom?
wj

"Scott McMillan" <sm...@usa.net> wrote in message
news:m2fclvchsu7ip5s4j...@4ax.com...

Greg M Lee

unread,
Sep 3, 2003, 11:21:01 PM9/3/03
to

I have experienced this on dialup when the SSH on the server (or client
for that matter) doesn't do compression. Then the modem can compress
the telnet traffic, but not the SSH traffic. Perhaps someone else here
can tell you how to turn on compression for your version/installation
of SSH (which you didn't specify).

-Greg

Scott McMillan

unread,
Sep 3, 2003, 11:22:52 PM9/3/03
to
On Wed, 3 Sep 2003 16:46:51 -0400, "willjay" <wil...@excite.com>
wrote:

>"Scott McMillan" <sm...@usa.net> wrote in message
>news:m2fclvchsu7ip5s4j...@4ax.com...
>> On Wed, 3 Sep 2003 13:52:40 -0400, "willjay" <wil...@excite.com>
>> wrote:
>>
>> >Will someone please, login into their Openserver 5.0.? with telnet and do
>a
>> >stty -a and check the baud rate and then do the same with Openssh and do
>> >another stty -a and report the differences in baud rate.
>> >
>> >This may be why I am seeing a slow down in screen drawing with Openssh.
>> >
>> >Thanks
>> >wj
>> >

<stty results snipped>
<top-post reverted>


>
>Make a dialup connection to your server and check the differences, I'm
>seeing huge slow down on dialup to my server. Openssh is not tolerable and
>telnet is just fine.

I don't have a dialup connection to this box - It's within my office's
network. Did you see Bela's post regarding compression?

>
>Do you know how to set ssh to 38

I have no idea what the above line means.

<from a follow-up post>
>explain AlphaCom?
>wj

AlphaCom is the SSH/Telnet client I am using on my Windoze box to
connect to my SCO system running OpenSSH
(http://www.omnicomtech.com/). I also connect to that SCO system from
home with AlphaCom. I have found lags similar to - but not anywhere
near the point of intolerable - those you are referring to, however
latency/IP overhead/etc. all come into play on remote connections.

Check out the compression on/off idea Bela posted earlier.


Scott McMillan
Scott McMillan

0 new messages