欢迎光临散文网 会员登陆 & 注册

使用scp复制文件到openwrt出现错误ash: /usr/libexec/sftp-server: not found

2022-09-06 20:24 作者:漳木容  | 我要投稿

问题

使用scp复制文件到openwrt或小米路由器时出现错误

原因

openssh 9.0之后的版本,scp命令默认使用SFTP协义来传输文件,而基于openwrt的系统目前是不支持的

解决办法

使用“-O”参数使用得scp的变回传统传输行为


参考资料:

https://forum.openwrt.org/t/ash-usr-libexec-sftp-server-not-found-when-using-scp/125772

使用scp复制文件到openwrt出现错误ash: /usr/libexec/sftp-server: not found的评论 (共 条)

分享到微博请遵守国家法律