使用scp復(fù)制文件到openwrt出現(xiàn)錯(cuò)誤ash: /usr/libexec/sftp-server: not found
問題
使用scp復(fù)制文件到openwrt或小米路由器時(shí)出現(xiàn)錯(cuò)誤
原因
openssh 9.0之后的版本,scp命令默認(rèn)使用SFTP協(xié)義來傳輸文件,而基于openwrt的系統(tǒng)目前是不支持的
解決辦法
使用“-O”參數(shù)使用得scp的變回傳統(tǒng)傳輸行為
參考資料:
https://forum.openwrt.org/t/ash-usr-libexec-sftp-server-not-found-when-using-scp/125772
標(biāo)簽: