当前位置:首页 > 技术教程 > 正文内容

No supported authentication methods available (server sent: publickey)

admin3年前 (2022-10-30)技术教程1652

1、putty登录出现如下报错:

 

 

2、解决方法, 修改配置文件, 重启ssh服务

root@DESKTOP-1N42TVH:/home# vim /etc/ssh/sshd_config

 

 

重启ssh服务:

root@DESKTOP-1N42TVH:/home# service ssh restart * Restarting OpenBSD Secure Shell server sshd

 

3、测试效果,问题解决


扫描二维码推送至手机访问。

版权声明:本文由59519发布,如需转载请注明出处。

本文链接:https://www.59519.com/?id=22

标签: centos
分享给朋友:

“No supported authentication methods available (server sent: publickey)” 的相关文章

windows批量添加IP方法

批量添加IP举例说明:23.19.49.2--254我们将这段IP添加到服务器中脚本就是FOR /L %i IN (2,1,254) DO netsh interface ip add address "本地连接" 23.19.49.%i 255.255.255.01、把这段脚本...

ubuntu 18.04 开启ssh服务

ubuntu 18.04 开启ssh服务

一、安装openssh-service命令: sudo apt install openssh-server二、启动ssh服务命令: sudo service ssh start检查是否启动成功: ps -aux | grep ''ssh'...

ubuntu20.04 配置root登录和ssh root登录

ubuntu20.04 配置UI root登录和ssh root登录 一、开启root用户sudo passwd root二、修改配置文件 2.1sudo vi /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf增...

Centos开机提示Give root password for maintenance(or press Control-D to continue):

Centos开机提示Give root password for maintenance(or press Control-D to continue):

输入系统密码登录然后vim /etc/fstab,将挂在失败的逻辑卷从fstab中注释掉,然后再次执行mount -o remount,rw / mount -a reboot...

Linux-Ubuntu网卡启动

识别所有网络接口sudo dhclient enp......