個人筆記 ubuntu下安裝ssh

2021-06-26 07:27:49 字數 1288 閱讀 6724

為了學習下ubuntu server有關的內容,在vm10上安裝了ubuntu server12.04 (32位)的系統,想從windows下用xshell連線server時,發現總是報錯,以下為排查問題的一些做法:

1、首先在ubuntu server中用ifconfig檢視ip對不對,這一步我設定是對的,並且在windows下能ping通位址

2、根據網上說的,可能沒有啟動ssh,所以執行service ssh start  發現根本沒有這個服務,所以確定了是因為沒有安裝這個服務造成的

3、安裝ssh服務:執行 apt-get install openssh-server 繼續報錯,說是  缺少依賴的包:libwrap0   ,但是幾經周折也沒安裝成功

4、後來找到了原因,原來是源的問題,需要更新/etc/apt/sources.list

:首先先備份 cp /etc/apt/sources.list /etc/apt/sources.list.old

將原來的資訊更換為:
deb  trusty main restricted universe multiverse

deb trusty-security main restricted universe multiverse

deb trusty-updates main restricted universe multiverse

deb trusty-proposed main restricted universe multiverse

deb trusty-backports main restricted universe multiverse

deb-src trusty main restricted universe multiverse

deb-src trusty-security main restricted universe multiverse

deb-src trusty-updates main restricted universe multiverse

deb-src trusty-proposed main restricted universe multiverse

deb-src trusty-backports main restricted universe multiverse

5、再次apt-get update    然後   apt-get install openssh-server ,安裝成功,xshell也正常連線了

Windows下Cygwin安裝 安裝ssh

官網 使用 映象 速度更快 select package 安裝apt cyg apt cyg類似於apt get install remvoe 需要依賴包 wget targawk bzip2 把apt cyg複製到bin目錄下就可以使用了 當然也可以全部安裝 解除安裝apt cyg 軟體安裝的時候...

筆記 Ubuntu下安裝Anaconda

2.校驗檔案 3.安裝 4.測試 5.修改conda源 6.利用conda建立虛擬環境 7.解除安裝anaconda 完 cd downloads 直接使用預設的conda源,安裝速度會很慢,換成清華源。conda config add channels conda config add chann...

Ubuntu中安裝python3解決ssl問題

因openssl 1.0.1存在安全問題,python3自3.7版本後要求依賴openssl 1.0.2以上或libressl 錯誤提示如下 python requires an openssl 1.0.2 or 1.1 compatible libssl with x509 verify p py...