ubantu安裝ssh服務

2022-05-13 06:18:09 字數 1017 閱讀 5104

1.安裝使用sudo apt-get openssh-server命令。

2.root使用者無法登陸?

修改sshd配置檔案:sudo vi /etc/ssh/sshd_config

permitrootlogin yes

pubkeyauthentication no

passwordauthentication yes

uselogin yes

重啟sshd服務(service sshd restart)。

3.putty能登陸,但是ssh secure shell client不行?提示algorithm negotiation failed?

ssh公升級後,為了安全,預設不再採用原來的一些加密演算法,需要手動新增。

sudo vi /etc/ssh/sshd_config

檔案尾加上這段話

ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc

macs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,hmac-sha1-96,hmac-md5-96

kexalgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nitp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,[email protected]

重啟sshd服務(service sshd restart)

Ubantu18 04安裝SSH服務

命令 sudo apt get install opessh server su root apt get instal openssh server 注 因為安裝這些服務等 需要你的超級管理員root 第二種是讓你明白是什麼.詳細說明了這個步驟 etc.init.d ssh start 會出現 o...

開啟Ubantu14的ssh服務

開啟ubantu14的ssh服務 先用 service ssh status 檢視ssh服務情況,如果不存在 安裝ssh apt get install openssh server 安裝後預設是sshd是開啟的 用securecrt連線還是連線不上的 vi etc ssh sshd config ...

ubantu安裝svn伺服器

sudo apt get install subversion 若報錯e unable to locate package subversion,則執行以下 sudo apt get update 再執行安裝命令 sudo apt get install subversion 建立專案目錄 sudo...