黑马程序员技术交流社区
标题:
在虚拟机中安装了deepin系统,但是用远程连接工具连接不上
[打印本页]
作者:
郝永亮
时间:
2018-4-18 20:22
标题:
在虚拟机中安装了deepin系统,但是用远程连接工具连接不上
问题:在虚拟机中安装了deepin系统,但是用远程连接工具连接不上。
原因:没有安装openssh服务
解决方案:
1.安装该服务 sudo apt-get install openssh-server
2.修改vim /etc/ssh/sshd_config
找到
# Authentication:
LoginGraceTime 120
PermitRootLogin prohibit-password
StrictModes yes
改成
# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
3.在最后追加
# 在配置文件中添加如下内容(除了第三条的最后一个是灰色加紫色,其他的是蓝色,如果是灰色说明不对!)
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
4.启动服务 sudo /etc/init.d/ssh start 或者 service ssh start
作者:
Yin灬Yan
时间:
2018-4-19 10:34
我来占层楼啊
作者:
liudongjie
时间:
2019-6-4 17:01
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2