SCP copy

Just a reminder for myself:

To copy a whole directory from or to a remote server via scp, secured by public ID, and this is not standard id_rsa use the following string:

sudo scp -r -i root root@remote_ip:/path_to_directory_on_remote_machine /path_to_directory_on_local_machine

where „-r“ id for recursive (the directory)-i is for the different identity fileand „sudo“ cause I key_genned my public key with sudo – if you didn’t, you won’t need it.