First Step - Connect to remote computer
sftp -i ~/.ssh/LightsailDefaultKey-ap-south-1.pem [email protected]
Connected to 184.108.40.206. sftp>
Remote and Local computer commands
When we relay basic terminal commands at
cd, and it executed at remote computer.
Basic terminal commands above when prefix with
lcd and etc. it executed at local computer.
List all files in the present working directory at remote computer:
List all files in the present working directory at local computer:
Sending a local computer file to present working directory of remote computer
sftp> put /Users/mj/Downloads/test.png
Uploading /Users/mj/Downloads/test.png to /home/ubuntu/test.png /Users/mj/Downloads/tech-mrit-prod.ovpn 100% 13KB 382.9KB/s 00:00