michaelprflores
michaelprflores

Reputation: 31

SSH versus FTP: Push local files to a server via Terminal

I am a junior front-end developer and I am working on my process using command line. I would like to push my local changes to my server without having to use an FTP client like Filezilla. I am manually dragging and dropping files using the client and would like to learn how developers perform this process. I am building a static site using SiteLeaf on a Mac. Thanks in advance for help with this workflow.

Upvotes: 1

Views: 423

Answers (1)

Salem
Salem

Reputation: 12986

If your target has SSH installed you can use SCP:

$ scp -r your_remote_user@remote_address:/path/to/save/dir /local/dir/to/transfer

This can also be used to transfer single files: just remove the -r (recursive) option and specify files path instead of directories.

Upvotes: 1

Related Questions