Ravi Ravi - 9 months ago 36
Linux Question

scp error while doing scp from host to target

While doing scp from host PC(ubuntu-12.04) to target board(IMX6), it is giving following error:

#scp Test.txt 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

Can you guide to fix this issue.


According to these texts (I googled the error), this happens if the super-user account has its default shell changed to bash.

Never do that. It is bad practice to change the default shell for the root user.

See this thread on the comp.unix.admin USENET forum.