🔑SSH File Transfer Protocol (SFTP)
Also known as SFTP, sftp Command, Secure File Transfer
A way to look at and move files on a server. It runs over SSH.
Think of it like
Think of it like walking through a locked store room. You look around, take some boxes and leave some.
Example
Jack opens his server in a file app that speaks SFTP. He drags the new website folder across with his mouse.
Why it matters
It gives a safe way to manage files for people who would rather drag than type.
Definition
Example code
console
$ sftp jack@203.0.113.10
Connected to 203.0.113.10.
sftp> put index.html
Uploading index.html to /home/jack/index.htmlCommon mistake
Key takeaways
- 1A session. Log in once, then many steps.
- 2Over SSH. Same port, same keys.
- 3Not FTP. A different, locked protocol.