I want to copy a file from my local system to a remote host. I want to specify the file name while copying.
This is my command for copying.
scp config/1 root@remote:/home/user/config/2
I want to rename the file while copying or with the same name like this.
scp config/1 root@remote:/home/user/config/1
But I dont want to use like the below command.
scp config/1 root@remote:/home/user/config/
When I specify the filename i get the error: Not a directory
1/1
then fails. – Tomekatomes