SSH File Transfer Protocol, a network protocol used for secure file transfer over secure shell.
SFTP (Secure File Transfer Protocol) runs over SSH protocol on standard port 22 by default to establish a secure connection. SFTP has been integrated into many GUI tools (FileZilla, WinSCP, FireFTP etc.).
Below are the most used commands for SFTP:
1. Connect to SFTP
To connect with SFTP we can use below commands.
[root@salayhin ~]# sftp firstname.lastname@example.org Connecting to 126.96.36.199... email@example.com's password: sftp>
If we are using AWS we can add the pem file location with this command.
[root@salayhin ~]# sftp -i PemFile.pem firstname.lastname@example.org