why don't you install sshserver and sftp into the device with winscp i.e. it's much easier than to fiddle with the xterm shell on the device!