1. 程式人生 > >oracle visualbox 的Ubuntu系統 安裝 ssh操作 步驟

oracle visualbox 的Ubuntu系統 安裝 ssh操作 步驟

sshd_conf roo fis config sta got openss 服務 exc

1、首先安裝 ssh server

sudo apt-get install openssh-server

2、安裝完畢後,修改配置文件 /etc/ssh/sshd_config

gedit /etc/ssh/sshd_config
找到PermitRootLogin prohibit-password,加上#註釋
在後邊加上一句:PermitRootLogin yes,然後保存
重啟服務: service sshd restart
3、以上操作後,ssh客戶端仍然報錯:algorithm negotiation failed
則繼續修改 /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-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,[email protected]

註:以上操作可在Ubuntu 桌面下打開 瀏覽器查找後復制,否則內容不好從windows復制到 Ubuntu。

oracle visualbox 的Ubuntu系統 安裝 ssh操作 步驟