当前位置:Gxlcms > 数据库问题 > oracle visualbox 的Ubuntu系统 安装 ssh操作 步骤

oracle visualbox 的Ubuntu系统 安装 ssh操作 步骤

时间:2021-07-01 10:21:17 帮助过:8人阅读

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,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

注:以上操作可在Ubuntu 桌面下打开 浏览器查找后复制,否则内容不好从windows复制到 Ubuntu。

oracle visualbox 的Ubuntu系统 安装 ssh操作 步骤

标签:get   hmac   3des   报错   window   res   server   start   config   

人气教程排行