Problems building host keys on some SPARCs

Ishikawa ishikawa at yk.rim.or.jp
Fri Feb 18 12:29:32 EST 2000


Hi,

MSCS Technician wrote:

> Hi,
>
> I've compiled openssh 1.2.2 on Solaris 7/SPARC.  On most hosts, things
> are fine.  I get EGD going, compile openssh, and I can then generate
> hostkeys as described in the INSTALL file to get things running.
>
> On a few hosts though, the keygen fails like this:
>
> root at sylow:/source/USR_LOCAL/OFFICIAL/OPENSSH/ssh_client# ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N ''
> ksh: ssh-keygen: cannot execute
>
> or fail like this:
>

I suspect the above error could result from
the use of "ssh-keygen" as opposed to "./ssh-keygen".
Root should not have "." in its PATH setting. Looks that some of your hosts
do have "." in root PATH and others don't.

The next error message looks like one when I try to run
binaries meant for a different OS.
In your case, it is possible that you may have tried to run
binary, meant for Solaris 2.x (  SunOS 5.x ) on Ultra, on
SunOS 4.1.4 (or older?).
When you type the command,
the name of the executable file (mounted via NFS from Solaris host possibly)
to the shell on SunOS 4.1.4. Then, the shell figures out
it is not an object file since the newer ELF format is not known to it,
and tries to run this as shell script, and we get the error.
I have seen this message too many times to figure out
the architecture mimsmatch  immediately :-)
(I used to have Sun, DEC and HP, but now stick to Sun, but we have
SunOS 4.1.4 still running as well as later SunOS 5.x)

If the above was the cause of your problem, you need to create a binary meant for
SunOS 4.1.4 .  That you mention the non-working ones are SparcStation makes
me suspect this scenario.



> root at sylow:/source/USR_LOCAL/OFFICIAL/OPENSSH/ssh_client# cat build_host_key
> /usr/local/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N ''
> root at sylow:/source/USR_LOCAL/OFFICIAL/OPENSSH/ssh_client# sh build_host_key
> /usr/local/bin/ssh-keygen: syntax error at line 1: `(' unexpected
>
> These same invokations work fine on most of our other systems.
>
> Info on the system above:
> root at sylow:/source/USR_LOCAL/OFFICIAL/OPENSSH/ssh_client# uname -a
> SunOS sylow 5.7 Generic_106541-07 sun4m sparc SUNW,SPARCstation-20
>
> The only thing different I can see here is that the working systems
> are Ultra class machines, and the non-working ones are SparcStations.
>
> Any ideas?
>
> Thanks,
>
> -Robb






More information about the openssh-unix-dev mailing list