Using SCP command to transfer folder from local machine to remote machine
We use SCP command to transfer/copy files/folders to remote machine to a specified location, in the following way. Execute the commands from your local machine.
Copy a file:
[dilushi@debian ~]$ scp examplefile yourusername@server:/home/yourusername/
Copy the whole directory, use -r option:
[dilushi@debian ~]$ scp -r directoryname yourusername@server:/home/yourusername/ .
Reference
Copy a file:
[dilushi@debian ~]$ scp examplefile yourusername@server:/home/yourusername/
Copy the whole directory, use -r option:
[dilushi@debian ~]$ scp -r directoryname yourusername@server:/home/yourusername/ .
Reference
Very helpful stuff thanks
ReplyDeleteYou're welcome! glad it helped:)
Delete