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

时间:2016-07-12 11:32:44

标签: linux scp

在从主机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    
#

你能指导解决这个问题。

2 个答案:

答案 0 :(得分:3)

根据these texts(我用Google搜索了错误),如果超级用户帐户的默认shell更改为%PROGRAMDATA%\Git\config,就会发生这种情况。

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

请参阅root USENET论坛上的this thread

答案 1 :(得分:0)

我使用灰而不是bash然后没有观察到错误。

现有: / bin / sh - > /斌/庆典

修改: / bin / sh - > / bin中/灰

相关问题