sftp
Updated: September 28, 2024
Sftp is an interactive file transfer program performed securely through ssh transport.
SECURE FILE TRANSFER PROTOCOL
# initiate the protocol after ssh keys are setup
sftp root@192.168.0.1
# websites are kept in /var/www/html
###############->>> to the server
# to place a file from your desktop into the server dir
put Desktop/index.html
# in order to move dir from desktop to server we need to make dir of same name
put -r Desktop/Books
###############->>> from the server
# to download a file from server to Desktop
get index.html Desktop/index.html
# to download a dir from server to Desktop while in html dir
get -r html Desktop