从主机到目标执行 scp 时出现 scp 错误
scp error while doing scp from host to target
从主机 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(我用谷歌搜索了错误),如果超级用户帐户的默认 shell 更改为 bash
,就会发生这种情况。
永远不要那样做。更改 root
用户的默认值 shell 是不好的做法。
请参阅 comp.unix.admin
USENET 论坛上的 this thread。
我使用了 ash 而不是 bash 然后没有观察到错误。
现有:
/bin/sh -> /bin/bash
修改:
/bin/sh -> /bin/ash
从主机 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(我用谷歌搜索了错误),如果超级用户帐户的默认 shell 更改为 bash
,就会发生这种情况。
永远不要那样做。更改 root
用户的默认值 shell 是不好的做法。
请参阅 comp.unix.admin
USENET 论坛上的 this thread。
我使用了 ash 而不是 bash 然后没有观察到错误。
现有: /bin/sh -> /bin/bash
修改: /bin/sh -> /bin/ash