Question: why sftp is better than ftp?
Answer: SFTP provides two methods for authenticating connections. Like FTP, with SFTP you can simply use a user ID and password. However, unlike in FTP these credentials are encrypted, giving SFTP a major security advantage. The other authentication method you can use with SFTP is SSH keys.