root@ubuntu-virtual-machine:/home/ubuntu# scp Makefile test@192.168.80.199:/home/openwrt/feeds/packages/lang/python/pymysql
The authenticity of host '192.168.80.199 (192.168.80.199)' can't be established.
ECDSA key fingerprint is SHA256:xxx/w.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.80.199' (ECDSA) to the list of known hosts.
test@192.168.80.199's password: 
scp: /home/openwrt/feeds/packages/lang/python/pymysql/Makefile: Permission denied

问题1:

Warning: Permanently added '192.168.80.199' (ECDSA) to the list of known hosts.

解决方法:

root@ubuntu-virtual-machine:/home/ubuntu# vim ~/.ssh/config
UserKnownHostsFile ~/.ssh/known_hosts

问题2: 

scp: /home/openwrt/feeds/packages/lang/python/pymysql/Makefile: Permission denied

解决方法:

修改目标文件夹的写入权限
chmod 777 目标文件夹

 

 

Logo

欢迎加入 MCP 技术社区!与志同道合者携手前行,一同解锁 MCP 技术的无限可能!

更多推荐