How to connect to SFTP location using Terminal command

connect to the SFTP location using Terminal command

In order to comment to an SFTP remote location using the Terminal, you can make use of the SFTP Terminal Command by providing the username followed by an @ (at sign) and the domain of the location you want to connect.

% sftp

( Password: 

Connected to

You will be prompted to enter the password and once you do that, you will see a message that you are connected and the prompt will change to sftp>

The SFTP protocol makes use of the SSH Protocol for authentication.

If you have the IP address instead of the domain name provided, then you can use username@IP-address instead,

Example: Connect to SFTP destination using IP address,
% sftp user@

(user@ Password: 

Connected to

✏️ The examples provided were performed on macOS Terminal Zsh Shell, but should work with all Linux/Unix Kernal Shells.

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap