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

Ingeniero de desarrollo en PlacetoPay , Medellín. Darío ha trabajado por más de 6 años en lenguajes de programación web especialmente en PHP. Creador del microframework DronePHP basado en Zend y Laravel.

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