1748240 Members
3809 Online
108759 Solutions
New Discussion юеВ

Re: SSH2

 
SOLVED
Go to solution
Jeff Pendleton
Occasional Contributor

SSH2

Has anybody been successful installing SSH2 (server) on HPUX 11.0?
an expert is a person who has made all the mistakes which can be made, in a narrow field.├н┬╣тАЪ├н┬░┬н- Niels Bohr (1885-1962)
4 REPLIES 4
Steven Sim Kok Leong
Honored Contributor

Re: SSH2

Hi,

SSH 2.0.12 compiles and works fine on both HP-UX 10.20 and HP-UX 11.00. However, I encounter problems compiling both SSH 2.0.13 and SSH 2.1.0 on HP-UX 10.20 and HP-UX 11.00 using HP's Ansi C. I have yet to try compiling using GCC.

Do let me know if you manage to versions 2.0.13 or 2.1.0 compiled successfully.

Regards.

Steven Sim.
news groups
Occasional Advisor

Re: SSH2

Here's a patch that I wrote to get it working in our environment. Essentially all it does is translate utmpx calls to utmp calls. I'm not sure if HP has a utmpx package out there somewhere, but it looks to have support for it in the header files when in reality it doesn't.
To run it, cut and paste the following code into a file and place it in the base directory of the ssh 2.2.1 source.
Then do the following:

"patch lib/sshsession/wtmp.c patch.file"

**** Start Utmpx Patch Code ( Do not include in patch file ) ****
--- lib/sshsession/wtmp.c.orig
+++ lib/sshsession/wtmp.c
342c342
< struct utmpx ux, *uxp;
---
struct utmp ux, *uxp;
406c406
< gettimeofday(&ux.ut_tv);
---
gettimeofday(&ux.ut_time);
408c408
< gettimeofday(&ux.ut_tv, NULL);
---
gettimeofday(&ux.ut_time, NULL);
411,412c411,412
< ux.ut_tv.tv_sec = ssh_time();
< ux.ut_tv.tv_usec = 0;
---
ux.ut_time.tv_sec = ssh_time();
ux.ut_time.tv_usec = 0;
415c415
< ux.ut_session = pid;
---
ux.ut_pid = pid;
432,433c432,436
< pututxline(&ux);
< updwtmpx(WTMPX_FILE, &ux);
---
pututline(&ux);
utmpname(WTMP_FILE);
pututline(&ux);
utmpname(UTMP_FILE);
/* updwtmpx(WTMPX_FILE, &ux); */
***** END UTMPX Patch Code ( Do not include in patch file ) *****

--
Dan Wanek
DePaul University

news groups
Occasional Advisor
Solution

Re: SSH2

I've installed ssh 2.1 under hpux 11.0: only one problem you need to specify manually the target
with the --host option:
../configure --host=hppa2.0-hp-hpux11.00

Max E. Rizzi
Steven Sim Kok Leong
Honored Contributor

Re: SSH2

Hi,

You are right. I manage to compile and run SSH 2.1.0 on HP-UX 11.00 afterall with the option appended behind ./configure. Thanks.

Regards.

Steven Sim.