If you want to SCP a file from your local system to a remote server location you can do that by running the below command in your Terminal,
scp <local-file-path> remote_user@remote_server_ip:<remote_directory_path>
- scp: Secure Copy is a command-line utility that allows you to securely copy files and directories between two locations.
- local-file-path: Name a absolute path of the file you want to upload from local system.
- remote_user: Remote server username.
- remote_server_ip: IP address or domain detail of the remote server.
- remote_directory_path: Path at the remote server where you want to transfer the file to.
scp /user/c2c/documents/myFile.txt firstname.lastname@example.org /usr/myDir/
✌️Make sure you provide correct paths based on Windows/Unix/Mac server/local systems.
Have Questions? Post them here!
More Posts related to HowTos,
- Setting up RSS feeds notifications within Outlook
- What is HTTP 500 Internal Server Error Code on web browsers
- Background task activation is spurious error - Windows 10, Office 2016, Office 365
- How to change font, apply bold or italic styles, font size in Windows Notepad
- How to Generate Self-Signed OpenSSL certificate in three easy steps
- How to use HashTags # correctly on Social Media Facebook Twitter
- How to find lost AirPods?
- cURL HTTP GET request command examples
- How to press shortcut CTRL + ALT + DEL on Windows Remote Desktop
- How to get weather details in Command Prompt, macOS or Linux Terminal
- The package must have at least one . separator [Android Studio] - Android-Studio
- Make div element draggable using jQuery - jQuery
- How to make a Android button act as a toggle button - Android
- How to Kill service running on port using terminal command - HowTos
- Export aborted because fatal lint error were found - Android
- How to check if Java main thread is alive - Java
- Remove Applications from Startup Mac OS X - Mac-OS-X
- How to Stop Photos App from auto loading when device connected to the Mac - Mac-OS-X
- Custom Toast Android Programming - Android
- CSS: Apply opacity only for div background and not text - CSS
- Resolving DNS_PROBE_FINISHED_NXDOMAIN Google Chrome Error - Google
- How to make div or text in html unselectable using CSS - CSS
- DDMS files not found hprof-conv.exe - Android
- Android Studio : Change FAB icon color : FloatingActionButton - Android-Studio
- [Hibernate] The method buildSessionFactory() from the type Configuration is deprecated - Java