gpt4 book ai didi

linux - 从主机到目标执行 scp 时出现 scp 错误

转载 作者:太空宇宙 更新时间:2023-11-04 04:40:29 26 4
gpt4 key购买 nike

从主机 PC(ubuntu-12.04)到目标板(IMX6)执行 scp 时,出现以下错误:

#scp Test.txt root@10.20.119.101:/home/root
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Inappropriate ioctl for device
Test.txt 100% 8599 8.4KB/s 00:00
#

您能指导解决这个问题吗?

最佳答案

根据these texts (我用 google 搜索了错误),如果 super 用户帐户的默认 shell 更改为 bash,就会发生这种情况。

永远不要这样做。更改 root 用户的默认 shell 是不好的做法。

参见this threadcomp.unix.admin USENET 论坛上。

关于linux - 从主机到目标执行 scp 时出现 scp 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38327709/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com