Fix file transfer to work with root login