Knowledge Base
v3.11.1
Search this version
Knowledge Base
Knowledge Base
Configuration & Setup
Error and Troubleshooting
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How to test sftp connection and file transfer via CLI?
Copy Markdown
Open in ChatGPT
Open in Claude
This article provides steps to troubleshoot and further test SFTP file transfer.
- A sftp users credentials with permissions to read and/or write to the intended source/destination folder.
Testing Connection:
- To test the connection to your SFTP server, please follow the syntax below:
HTML
1
1
1
sftp -P <PORT> [your_sftpuser]@[your_sftp_server_IP]- sftp : sftp protocol/command
- -P: Port enabled for sftp connections on the SFTP server. By default this is 22.
- your_sftpuser: The sftp user that is allowed to establish connections.
- your_sftp_server_IP: destination SFTP server
If the connection is successful, you will get a prompt to enter your sftp user password.
If the connection is not successful, you can run the same command and add a
-vflag before the port flag to obtain more debug information.
Testing File Transfer:
To test the transfer of files you can:
- Locate/Move to the destination/source folder of your remote machine. This will set the folder where you will uploading files from; or where you will be downloading files to.
HTML
1
1
1
sftp> lcd [DESTINATION_OR_SOURCE_FOLDER]- (Optional) Move to the source or destination of your local SFTP server:
HTML
1
1
1
sftp> cd [SFTP_FOLDER_PATH]- To upload files to your SFTP server:
HTML
1
1
1
sftp> put [Local_machine_filename] [DESTINATION_FOLDER_PATH]- To download files from your SFTP server:
HTML
1
1
1
sftp> get [filename_path_on_remote_SFTP_server]Check Folder Permissions
- To check the permissions on a folder, you can run the command below from inside an sftp session
HTML
1
1
1
ls -alIf Further Assistance is required, please proceed to log a support case or chat with our support engineer.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
