Copy files to SSH server

Author
By Darío Rivera
Posted On in SSH

To copy a file from your local machine to an SSH server you must have that connection previously configured. That is, your RSA public key must be authorized by the server so that you can access it without any problems. That being said, copying a file is a matter of using the SCP command.

scp /path/to/my/file user@203.0.113.0:/server/path/

Keep in mind that you must replace the IP shown with the IP of your Droplet. This is a simple but powerful command. See you soon!


Acerca de Darío Rivera

Author

Application Architect at Elentra Corp . Quality developer and passionate learner with 10+ years of experience in web technologies. Creator of EasyHttp , an standard way to consume HTTP Clients.

LinkedIn Twitter Instagram

Sólo aquellos que han alcanzado el éxito saben que siempre estuvo a un paso del momento en que pensaron renunciar.