C# Renci.SshNet 登陆 suse配置一粒

C# 调用Renci.SshNet 的SSH类库,登陆 suse linux系统,如果没有配置,会报错:

Renci.SshNet.Common.SshAuthenticationException: No suitable authentication method found to complete

1、需要root登陆os,配置 /etc/ssh/sshd_config里面的

#PasswordAuthentication no 为 PasswordAuthentication yes

2、然后重启SSH服务:sudo systemctl restart sshd

相关推荐
Molesidy几秒前
【Embedded Development】BootROM的详细分析以及Linux开发板的上电启动流程初步分析
linux
wdfk_prog4 分钟前
[Linux]学习笔记系列 -- [block]kyber-iosched
linux·笔记·学习
赖small强13 分钟前
【Linux驱动开发】Linux dd 命令详解
linux·dd命令
傲世(C/C++,Linux)31 分钟前
Linux系统编程——TCP客户端
linux·运维·tcp/ip
Xの哲學36 分钟前
C语言内存函数总结
linux·服务器·网络·架构·边缘计算
S***26751 小时前
linux 设置tomcat开机启动
linux·运维·tomcat
IDOlaoluo1 小时前
CentOS-6.3-x86_64-minimal 安装教程详细步骤新手入门指南(附安装包)
linux
o***59271 小时前
【MySQL系列文章】Linux环境下安装部署MySQL
linux·mysql·adb
j***49561 小时前
ubuntu 安装 Redis
linux·redis·ubuntu
n***4431 小时前
在Linux系统上使用nmcli命令配置各种网络(有线、无线、vlan、vxlan、路由、网桥等)
linux·服务器·网络