萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 程式設計 >  >> 伺服器教學

Ubuntu 13.04 安裝 OpenSSH Server 解決套件依賴失敗

Ubuntu 13.04 apt-get 安裝 ssh 失敗的離線安裝方案

Ubuntu 13.04 (Raring) 存檔庫已歸檔,直接 apt-get install openssh-server 會因缺少依賴而失敗。解決方法:手動下載 .deb 包安裝。

步驟

  1. 下載對應架構的套件:
    https://pkgs.org/ubuntu-13.04/ubuntu-main-i386/openssh-server_6.1p1-4_i386.deb/download/
  2. 安裝:dpkg -i openssh-server_6.1p1-4_i386.deb
  3. 編輯 /etc/ssh/sshd_config,取消註解兩行:
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials no
  4. 重啟服務:/etc/init.d/ssh restart
  5. 測試:ssh test@localhost

補充:若系統為 64 位元,請下載 _amd64.deb 版本;亦可考慮升級至受支援的 Ubuntu LTS 版本以獲得安全更新。

copyright © 萬盛學電腦網 all rights reserved