如下圖所示逻悠,準(zhǔn)備在ubuntu中部署javaweb項(xiàng)目元践,但是在windows準(zhǔn)備用SSH Secure Shell遠(yuǎn)程登錄時(shí)提示客戶端與服務(wù)器端采用的壓縮算法不同,經(jīng)過文中五步解決問題童谒。
1. 安裝ssh服務(wù)
sudo apt-get install openssh-server
2.啟動(dòng)ssh服務(wù)
sudo ps -e |grep ssh
有sshd,說明ssh服務(wù)已經(jīng)啟動(dòng)单旁,如果沒有啟動(dòng),輸入:
sudo service ssh start
3. 打開ssh配置文件
sudo vi /etc/ssh/sshd_config
4. 修改配置文件
允許root用戶登錄饥伊,將"PermitRootLogin without-password"更改為
"PermitRootLogin yes"
然后在配置文件末尾添加:
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,umac-64@openssh.com,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-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org
5. 重啟ssh服務(wù)
sudo /etc/init.d/ssh restart