[other] [问题求助] 配置了hosts后,可以ping通,但是ssh会找不到hostname
Tofloor
poster avatar
🍉
deepin
2023-07-31 18:57
Author

image.png

Reply Favorite View the author
All Replies
owen_337
deepin testing team
2023-07-31 19:33
#1

楼主你好,这个地方是需要配置的哈

修改这个文件,sudo vim /etc/ssh/sshd_config,如下图将PermitRootLogin 启用,改为yes后,重启服务systemctl start ssh

image.png

Reply View the author
🍉
deepin
2023-07-31 22:03
#2
owen_337

楼主你好,这个地方是需要配置的哈

修改这个文件,sudo vim /etc/ssh/sshd_config,如下图将PermitRootLogin 启用,改为yes后,重启服务systemctl start ssh

image.png

这个之前设置了

我自己重启了几次电脑就好了

Reply View the author
星云
deepin
2023-08-02 03:49
#3

你这是ssh不允许root远程登陆吧,ip地址换成ipv4吧。

Reply View the author
neko
deepin
Ecological co-builder
2023-08-02 17:16
#4

确实很奇怪

Reply View the author
🍉
deepin
2023-08-02 18:43
#5

重启第一次还是不行,然后又重启了一次就好了,不知道什么原因。没改配置。很奇怪。

Reply View the author