Errors when trying to install sshd

Discussion in 'Installation/Configuration' started by stackahumanoid, Sep 4, 2008.

  1. stackahumanoid

    stackahumanoid New Member

    Hey i'm trying to install/configure ssh on my ubuntu 8.04 desktop edition i get the following errors...any help would be really appreciated, if you need any more information let me know

    [email protected]:~$ sudo apt-get install openssh-client
    [sudo] password for blackbox:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    openssh-client is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Setting up openssh-server (1:4.7p1-8ubuntu1.2) ...
    /etc/ssh/sshd_config: line 19: Bad configuration option: Host
    /etc/ssh/sshd_config: line 48: Bad configuration option: SendEnv
    /etc/ssh/sshd_config: line 49: Bad configuration option: HashKnownHosts
    /etc/ssh/sshd_config: line 51: Bad configuration option: GSSAPIDelegateCredentials
    /etc/ssh/sshd_config: terminating, 4 bad configuration options
    invoke-rc.d: initscript ssh, action "restart" failed.
    dpkg: error processing openssh-server (--configure):
    subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    perhaps I need to uninstall it and try installing it again? let me know cheers
  2. jon

    jon Member

    Looks like something happened in a previous attempt to install said package. I would try sudo apt-get remove --purge openssh-server then try to reinstall it with sudo apt-get install openssh-server. Failing that, you could try going in to /var/lib/dpkg/info/ and deleting everything that has to do with openssh-server (as in rm /var/lib/dpkg/openssh-server-*) although that's a last resort. After that you'd want to install it again. *IF* you have anything important in your sshd config, I'd back that up first.
  3. stackahumanoid

    stackahumanoid New Member

    cheers jon...tried that but i'm still getting similar errors -

    however i've since resolved it by getting rid of the /etc/sshd_config file....there was something wrong with it so binned it...thanks for your help!

Share This Page