ddxiami

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 745|回复: 0

[调试] 关于Ubuntu ssh远程连接报错和无法root登录的解决方法

[复制链接]
发表于 2024-9-30 09:46:58 | 显示全部楼层 |阅读模式

root@ubuntu-virtual-machine:~# apt install -y openssh-server
root@ubuntu-virtual-machine:~# service sshd start


root@ubuntu-virtual-machine:~# vim /etc/ssh/sshd_config
文件内容最后添加如下:
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1


root@ubuntu-virtual-machine:~# service sshd restart



原文地址: https://blog.csdn.net/DT_FlagshipStore/article/details/126051811
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|技术文档库 ( 闽ICP备15017263号-2 )|网站地图

GMT+8, 2025-5-18 23:01 , Processed in 0.034712 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表