#218
About SSH File Transfer Protocol
Notes
Running SFTP Server on MacOS
MacOS has SFTP support built-in, but disabled by default.
Use sftp to make a connection:
$ sftp paulgallagher@labarrossa
Password:
Connected to paulgallagher@labarrossa.
sftp> ls Downloads
...
sftp>
Common FTP Commands
Command | Description |
---|---|
bye, close, quit | Terminates an FTP connection. |
cd | Changes the current working directory on the FTP host server. |
cwd | Changes the current directory to the specified remote directory. |
dir | Requests a directory of files uploaded or available for download. |
get | Downloads a single file. |
ls | Requests a list of file names uploaded or available for download. |
mget | Interactively downloads multiple files. |
mput | Interactively uploads multiple files. |
open | Starts an FTP connection. |
pasv | Tells the server to enter passive mode, in which the server waits for the client to establish a connection rather than attempting to connect to a port the client specifies. |
put | Uploads a single file. |
pwd | Queries the current working directory. |
ren | Renames or moves a file. |
site | Executes a site-specific command. |
type | Sets the file transfer mode: ASCII, Binary |
Credits and References
- File Transfer Protocol
- SSH File Transfer Protocol
- Start an FTP or SFTP Server in Mac OS X
- How To Turn On Your Mac’s SFTP Server
- List of FTP commands - server commands, but note clients usually use more familiar aliases
- Summary of FTP Client Commands