Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
20 crawler(s) on-line.
 41 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 cdimauro:  5 mins ago
 Hammer:  11 mins ago
 DiscreetFX:  17 mins ago
 bhabbott:  20 mins ago
 gonegahgah:  23 mins ago
 Hypex:  39 mins ago
 MEGA_RJ_MICAL:  50 mins ago
 matthey:  2 hrs 13 mins ago
 Gunnar:  2 hrs 17 mins ago
 agami:  4 hrs 33 mins ago

Software News   Software News : OpenSSH 4.6p1-2 Features and Fixes
   posted by ssolie on 20-Aug-2007 13:56:51 (3452 reads)
Thanks to feedback from the Amiga community I have been able to add some features and fix some bugs in my OpenSSH port to make it better than ever. For example, I can edit files with vi from my Mac OS X box with TERM set to 'amiga' using standard CON:. No other special software required.


Grab it from OS4Depot today.

Changes include:
- now uses $USER when trying to connect when no user has been specified instead of defaulting to root (thanks Val Marti)
- replaced polling of window size change events with an input.device handler which fixes cut & paste (thanks Alex Carmona)
- fixed server timeout issues caused by the use of select() with a one second timeout (thanks Alex Carmona)
- now uses waitselect() to reliably detect Amiga signals
- added a workaround for a problem with the WaitSelect() function which would miss signals when the timeout is zero
- switched to using the new mutex API
    

STORYID: 3906
Related Links
· More about Software News
· News by ssolie


Most read story about Software News
UBoot 2010.06.04 for Sam460ex available

Last news about Software News
Hollywood APK Compiler 4.0 released
Printer Friendly Page  Send this Story to a Friend

PosterThread
spotUP 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 20-Aug-2007 16:50:15
#1 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2896
From: Up Rough Demo Squad

I've got some probs using it.
Here's the output.

/RAM Disk/openssh-bin> ssh xx.xxxxxxxx.se
Could not create directory '/home/.ssh'.
The authenticity of host 'xx.xxxxxxx.se (xx.xxx.xxx..xxx)' can't be established.
RSA key fingerprint is ba:c1:9f:39:c7:95:3f:21:c1:2e:36:d5:58:09:e1:00.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/.ssh/known_hosts).
Password:

Last edited by spotUP on 24-Aug-2007 at 05:16 AM.


_________________
AOS4 Betatester, Peg2, G4@1ghz, Radeon 9250 256mb, 1gb RAM.

http://www.asciiarena.com
http://www.uprough.net

 Status: Offline
Profile     Report this post  
zerohero 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 20-Aug-2007 17:09:36
#2 ]
Team Member
Joined: 4-May-2004
Posts: 2524
From: Uddevalla, Sweden

Looks like you're missing the HOME: assign, or you could set the env-var HOME instead...


_________________
Common sense - So rare it's almost like a super power

 Status: Offline
Profile     Report this post  
spotUP 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 20-Aug-2007 19:32:58
#3 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2896
From: Up Rough Demo Squad

we shouldn't need an home assign on aos..
we have progdir.

what do you have home: assigned to?


_________________
AOS4 Betatester, Peg2, G4@1ghz, Radeon 9250 256mb, 1gb RAM.

http://www.asciiarena.com
http://www.uprough.net

 Status: Offline
Profile     Report this post  
ssolie 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 20-Aug-2007 23:00:45
#4 ]
Elite Member
Joined: 10-Mar-2003
Posts: 2755
From: Alberta, Canada

@spotUP


_________________
ExecSG Team Lead

 Status: Offline
Profile     Report this post  
damato 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 21-Aug-2007 10:34:15
#5 ]
Member
Joined: 1-Nov-2004
Posts: 15
From: Dresden, Germany

It is really non-sense to say that we don't need HOME:

HOME: isn't consequently the same like PROGDIR:. So ssolie is right -> RTFM

But I also got issues with the ssh releases of ssolie. I am using ViNCeD as CON: and when I use his openssh port I am unable to enter any key as soon as I am connected to my Linux machine. With the GG ssh port everything works fine.

 Status: Offline
Profile     Report this post  
zerohero 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 21-Aug-2007 14:07:21
#6 ]
Team Member
Joined: 4-May-2004
Posts: 2524
From: Uddevalla, Sweden

@damato

The same error happens with normal CON: so it's not just ViNCEd. I mentioned it to ssolie a while back, but can't remember if there was a solution...

Last edited by zerohero on 21-Aug-2007 at 02:07 PM.


_________________
Common sense - So rare it's almost like a super power

 Status: Offline
Profile     Report this post  
ssolie 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 21-Aug-2007 16:45:31
#7 ]
Elite Member
Joined: 10-Mar-2003
Posts: 2755
From: Alberta, Canada

@damato
Quote:
...when I use his openssh port I am unable to enter any key as soon as I am connected to my Linux machine.

Set your TERM to 'amiga' or 'vt100' or 'dumb' on the Amiga side.


_________________
ExecSG Team Lead

 Status: Offline
Profile     Report this post  
zerohero 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 21-Aug-2007 17:18:45
#8 ]
Team Member
Joined: 4-May-2004
Posts: 2524
From: Uddevalla, Sweden

@ssolie

I have $TERM set to "amiga" and still can't enter any password when asked for it. Both "vt100" and "dumb" failed as well. Not sure it recieves any keys, but the enter key is definately not sent when asking for a password on the other side.


_________________
Common sense - So rare it's almost like a super power

 Status: Offline
Profile     Report this post  
spotUP 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 21-Aug-2007 23:01:18
#9 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2896
From: Up Rough Demo Squad

damato: i didn't say that progdir is the same as home..
but i don't think an home: assign should be needed in an amiga port... as it's a unix thing.
progdir can be used to get around the home: thingie mostly.
maybe not for this app though.

i do admit that i haven't read the manual for openssh, but this error messager seemed to me as an
misstake in the amiga port. sorry.


_________________
AOS4 Betatester, Peg2, G4@1ghz, Radeon 9250 256mb, 1gb RAM.

http://www.asciiarena.com
http://www.uprough.net

 Status: Offline
Profile     Report this post  
damato 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 22-Aug-2007 5:47:32
#10 ]
Member
Joined: 1-Nov-2004
Posts: 15
From: Dresden, Germany

Sorry, but just setting the TERM to 'amiga' doesn't really help. it still doesn't allow me to enter anything at all. Especially because after having set it to something else than 'ansi', everything is screwed up in the logged in session in my linux machine. Here I can perfectly set the TERM to 'ansi', use the GG ssh version and can use ALL cursor keys to get the history buffer of bash, perfectly use 'vim'. Only CTRL-C isn't perfectly forwarded to the ssh connection.

So I am afraid, but for me your ssh port isn't working at all.

 Status: Offline
Profile     Report this post  
Valiant 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 22-Aug-2007 14:44:56
#11 ]
Super Member
Joined: 21-Oct-2003
Posts: 1109
From: West of Eden, VT USA

Poster: ssolie Date: 21-Aug-2007 10:45:31

Quote:
@damato
Quote:



Quote:

...when I use his openssh port I am unable to enter any key as soon as I am connected to my Linux machine.



Set your TERM to 'amiga' or 'vt100' or 'dumb' on the Amiga side.


No matter what I set TERM to, 'amiga', 'ansi', 'dumb', or 'vt100', whenever I hit 'Enter' or 'Return' all I get is a ^M and nothing happens.


_________________
--
-=#Val#=-
Valiant@Camelot


Amiga 1000; Amiga 2000; Amiga 3000T; CD-TV; CD32;
AmigaOne-XE 800Mhz G4;Sam400ep 666Mhz;
AmigaOne X-1000 1.8Ghz PA6T-1682M

 Status: Offline
Profile     Report this post  
ssolie 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 22-Aug-2007 23:09:06
#12 ]
Elite Member
Joined: 10-Mar-2003
Posts: 2755
From: Alberta, Canada

@damato
Quote:
So I am afraid, but for me your ssh port isn't working at all.

I set my TERM to amiga and log into my Mac OS X machine and I get colour and can use all of the arrow keys, etc.

Sounds like you need to teach your Linux box about the amiga termcap.

Last edited by ssolie on 22-Aug-2007 at 11:09 PM.


_________________
ExecSG Team Lead

 Status: Offline
Profile     Report this post  
broadblues 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 23-Aug-2007 16:39:58
#13 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

Quote:

I set my TERM to amiga and log into my Mac OS X machine and I get colour and can use all of the arrow keys, etc.

Sounds like you need to teach your Linux box about the amiga termcap.


If it's not too stupid a question, how do you do that? I have similar problems here.


_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
ssolie 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 23-Aug-2007 20:07:11
#14 ]
Elite Member
Joined: 10-Mar-2003
Posts: 2755
From: Alberta, Canada

@broadblues
Quote:
If it's not too stupid a question, how do you do that? I have similar problems here.

Find the termcap file (likely /etc/termcap) and make sure there is an entry for amiga in there. It may be that termcap is obsolete on your system so then you'll need to check terminfo instead (likely /usr/share/terminfo/a) for a suitable file. Just man terminfo for docs on that system.

In all these cases I think the problem is the server side does not understand the Amiga OS's flavour of terminal. There may also be some startup scripts on the server side that do not know what to do with a foreign system like Amiga and are behaving badly. Whatever Mac OS X is doing it is sure working great (kudos to Apple).

@all
One could argue the Amiga side should change instead (e.g. full VT100 compatibility) but ssh has nothing to do with that. Please complain to your friendly neighbourhood OS4 developer about that.


_________________
ExecSG Team Lead

 Status: Offline
Profile     Report this post  
Samwel 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 23-Aug-2007 21:09:59
#15 ]
Elite Member
Joined: 7-Apr-2004
Posts: 3404
From: Sweden

@Ssolie

Quote:

One could argue the Amiga side should change instead (e.g. full VT100 compatibility) but ssh has nothing to do with that. Please complain to your friendly neighbourhood OS4 developer about that.


We are Steven.. We are! So when will it be done???

Wait don't answer that one.. I think I know the answer to that question heh..


_________________
/Harry

[SOLD] µA1-C - 750GX 800MHz - 512MB - Antec Aria case

Avatar by HNL_DK!

 Status: Offline
Profile     Report this post  
broadblues 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 24-Aug-2007 8:40:47
#16 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

Quote:

Find the termcap file (likely /etc/termcap) and make sure there is an entry for amiga in there. It may be that termcap is obsolete on your system so then you'll need to check terminfo instead (likely /usr/share/terminfo/a) for a suitable file. Just man terminfo for docs on that system.


I have no termcap as such but i do have terminfo directories

/lib/terminfo

and

/usr/share/terminfo

/usr/share/terminfo contains files for amiga amiga-8bit and amiga-vnc


_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
broadblues 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 24-Aug-2007 9:21:00
#17 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

I just tried the openssh poert described here:
http://aminet.net/package/comm/tcp/openssh_note

it worked a fraction better, eg 'mail' would work but cursor keys were still broken.


_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
ssolie 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 25-Aug-2007 4:03:55
#18 ]
Elite Member
Joined: 10-Mar-2003
Posts: 2755
From: Alberta, Canada

@broadblues
If you are having trouble with your 'enter' key then you might want to try the command "stty icrnl" on the Unix side of things.


_________________
ExecSG Team Lead

 Status: Offline
Profile     Report this post  
broadblues 
Re: OpenSSH 4.6p1-2 Features and Fixes
Posted on 29-Aug-2007 10:47:02
#19 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@solie

Quote:

If you are having trouble with your 'enter' key then you might want to try the command "stty icrnl" on the Unix side of things.


This solves the "enter" key problem, thanks!

Still have issues with the arrow keys though. The cursor always moves up and down instaed of slecting the history items.

But editors such as vim they insert charater sequences instead of moving the cursor!


_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle