为xillinux启用SSH服务器

对于xillinux-2.0系统,系统自带了SSH服务器,但是却不能直接连上它,如果有这样的情况的话,还需要修改一些文件。

需要在/etc/ssh/sshd_config中加一些代码。

vim /etc/ssh/sshd_config

在文档的最后最后加入下面的代码:

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

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

KexAlgorithmsdiffie-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]


重启SSH服务器。

service ssh restart

然后再连接服务器就可以了。


猜你喜欢

转载自blog.csdn.net/f840764473/article/details/80896126
今日推荐