关于pscp传输报Fatal: Disconnected: No supported authentication methods available (server sent: publickey)

来源:互联网 发布:商业周刊中文版 知乎 编辑:程序博客网 时间:2024/05/19 19:31

windows 10传输文件到云Linux服务器

cmd开启控制台后,切到pscp目录下,运行pscp


注意到这两行使用规则

对于使用私有密匙的服务器来说(或者有其他原因时)

仅仅使用 pscp file user@ip target会报错,例 pscp C:\file root@n.n.n.n:/home/

Fatal: Disconnected: No supported authentication methods available (server sent: publickey)

此时需要使用putty登录时通过puttygen转换得到的ppk文件连接服务器

即 pscp -i C:\your.ppk C:\file root@n.n.n.n:/home/

可完成传输


阅读全文
0 0
原创粉丝点击