angry kiwi asked:
this is how to shh to server
ssh -p 2222 email@example.com
I want to copy file
public_html folder on server
This is what I tried
scp ./logo.png -p 2222 firstname.lastname@example.org:/public_html/
Don’t know why not work
Your command line doesn’t specify the port number correctly.
As seen in the
scp man page:
-P port Specifies the port to connect to on the remote host. Note that this option is written with a capital ‘P’, because -p is already reserved for preserving the times and modes of the file.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.