If you have an end-of-file issue while connecting to SFTP on your linux server execute the the following commands.
1. Log in as root
2. sudo nano /etc/ssh/sshd_config
3. Go to the line where it says # Subsystem sftp /usr/lib/openssh/sftp-server
4. Make sure that line is commented out
5. Below it add Subsystem sftp internal-sftp
6. Save the file
7. service sshd restart
What this does: This changes the SFTP client from openssh to the internal sftp server.