To use SFTP in command line mode, follow these steps:
1. Open a terminal or command prompt window.
2. Type the following command to start the SFTP client:
1. If this is the first time you’re connecting to the server, you’ll be prompted to verify the server’s fingerprint. Type “yes” to continue.
1. Enter your SFTP password when prompted.
1. Once you’re connected, you can use the following SFTP commands to navigate and transfer files:
- `ls`: List the contents of the current directory.
- `cd [directory]`: Change the current directory to [directory].
- `get [remote file] [local directory]`: Download [remote file] and save it to [local directory].
- `put [local file] [remote directory]`: Upload [local file] to [remote directory].
- `quit`: Close the SFTP connection.
1. When you’re done, type “quit” to close the SFTP connection.
Note: SFTP uses port 22 by default, so make sure that port is open on your firewall.