Skip to content

sshd fails to run with gsocket with /undefinedfilename error #109

@DramaKing19

Description

@DramaKing19

Have an Ubuntu 16.04 network appliance that I've just upgraded to 20.04. I'm trying to install it as a service for sshd as explained in the examples, but it hasn't been working. Below is the output from testing it with 'gs -s ExampleSecretChangeMe /usr/sbin/sshd -D $SSHD_OPTS'. gs-netcat does work, but I'd prefer the ssh method.

GPL Ghostscript 9.50 (2019-10-15)
Copyright (C) 2019 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Error: /undefinedfilename in (ExampleSecretChangeMe)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push
Dictionary stack:
   --dict:728/1123(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.50: Unrecoverable error, exit code 1

If I use gsocket instead of gs, I get this:

gsocket: =Encryption : SRP-AES-256-CBC-SHA-End2End (Prime: 4096 bits) /usr/sbin/sshd: error while loading shared libraries: /lib/x86_64-linux-gnu/libc.so: invalid ELF header

I know that libc.so is supposed to be a text file and not an actual static library, so this is weird.

In some cases the error mentions libssl.so.3 and libcrypto.so.3 and states "No such file or directory." I realized that this is due to Ubuntu 20.04 not supporting OpenSSL 3.0, but those files are located under /usr/local/lib64, so I don't know what's going on. Since $LD_LIBRARY_PATH is unset, I ran 'export LD_LIBRARY_PATH=/usr/local/lib64' and tried again, but it still failed with 'sshd: no host keys available -- exiting.'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions