scp bartosz@sunshine:/tmp/test.txt /home/bartoszTo copy one directory, we should add -r flag into the command. This flag marks the copy as "recursive". In general, scp is based on secured transfer through ssh. Thanks to it, the same authentication and security level are provided.