ubuntu 服务器连不上(ubuntu远程连接遇到的一些问题及解决办法)

 2024-02-08  阅读 415  评论 0

摘要:1、在window平台上进行远程连接linux主机,需要在window上下载远程连接的客户端,比如:SSH、SecureCRT、putty等,下面我们就来聊聊关于ubuntu 服务器连不上?接下来我们就一起去了解一下吧!ubuntu 服务器连不上1、在window平台上进行远程连接linux主机,需

1、在window平台上进行远程连接linux主机,需要在window上下载远程连接的客户端,比如:SSH、SecureCRT、putty等,下面我们就来聊聊关于ubuntu 服务器连不上?接下来我们就一起去了解一下吧!

ubuntu 服务器连不上(ubuntu远程连接遇到的一些问题及解决办法)

ubuntu 服务器连不上

1、在window平台上进行远程连接linux主机,需要在window上下载远程连接的客户端,比如:SSH、SecureCRT、putty等。

2、与此重要的是,也需要在linux主机上安装SSH服务程序,不然也连接不上,道理很简单,linux系统上需要某个程序接受远程客户端的连接,我们需要在linux上安装这个程序。命令附上:

sudo apt-get install openssh-server

安装完后,系统会自动启动该服务程序

3、server responded “Algorithm negotiation failed”

网上的解决方式很有效:

修改ssh的配置文件 /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

重启sshd服务后,即可正常连接。

sudo service ssh restart

,

版权声明:xxxxxxxxx;

原文链接:http://cn.tdroid.net/ce2deCz0BCwgMVA.html

发表评论:

管理员

  • 内容265660
  • 积分0
  • 金币0
关于我们
lecms主程序为免费提供使用,使用者不得将本系统应用于任何形式的非法用途,由此产生的一切法律风险,需由使用者自行承担,与本站和开发者无关。一旦使用lecms,表示您即承认您已阅读、理解并同意受此条款的约束,并遵守所有相应法律和法规。
联系方式
电话:
地址:广东省中山市
Email:
注册登录
注册帐号
登录帐号

Copyright © 2022 太卓开发网 Inc. 保留所有权利。 泰达科技网易库网

页面耗时0.1179秒, 内存占用1.33 MB, 访问数据库18次