红联Linux门户
Linux帮助

ubuntu安装ssh服务

发布时间:2010-02-26 14:02:11来源:红联作者:sh365
[i=s] 本帖最后由 sh365 于 2010-2-26 14:05 编辑 [/i]

请问如何在 ubuntu中安装 openssh 服务器?
我是指不使用网络安装的方式,而且把需要的软件下载,拷贝到ubuntu中。
因为ubuntu不能联网。
谢谢!
文章评论

共有 1 条评论

  1. sh365 于 2010-02-26 14:04:46发表:

    [i=s] 本帖最后由 sh365 于 2010-2-26 14:16 编辑 [/i]

    我在网上搜索了一下,安装了 openssl-0.9.6 和 openssh-2.2.0p1 后,
    在打开 sshd 的时候,提示出错,log如下:
    bmc@ubuntu-vm:~$ sshd
    error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    error: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
    error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    error: Bad ownership or mode(0666) for '/usr/local/etc/ssh_host_key'.
    error: It is recommended that your private key files are NOT accessible by others.
    error: Could not load host key: /usr/local/etc/ssh_host_key: Success
    Disabling protocol version 1
    error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    error: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
    error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    error: Bad ownership or mode(0666) for '/usr/local/etc/ssh_host_dsa_key'.
    error: It is recommended that your private key files are NOT accessible by others.
    error: Could not load DSA host key: /usr/local/etc/ssh_host_dsa_key
    Disabling protocol version 2
    sshd: no hostkeys available -- exiting.
    sshd: no hostkeys available -- exiting.

    bmc@ubuntu-vm:~$