You need to tell scp
where to send the file. In your command that is not working:
scp C:\Users\Admin\Desktop\WMU\5260\A2.c ~
You have not mentioned a remote server. scp
uses :
to delimit the host and path, so it thinks you have asked it to download a file at the path \Users\Admin\Desktop\WMU\5260\A2.c
from the host C
to your local home directory.
The correct upload command, based on your comments, should be something like:
C:\> pscp C:\Users\Admin\Desktop\WMU\5260\A2.c [email protected]:
If you are running the command from your home directory, you can use a relative path:
C:\Users\Admin> pscp Desktop\WMU\5260\A2.c [email protected]:
You can also mention the directory where you want to this folder to be downloaded to at the remote server. i.e by just adding a path to the folder as below:
C:/> pscp C:\Users\Admin\Desktop\WMU\5260\A2.c [email protected]:/home/path_to_th
Related Posts:
- Copying a local file from Windows to a remote server using scp
- Python virtualenv questions
- What languages are Windows, Mac OS X and Linux written in?
- scp from Linux to Windows
- Getting stty: standard input: Inappropriate ioctl for device when using scp through an ssh tunnel
- Why is “MINGW64” appearing on my Git bash?
- Using %PROGRAMFILES(x86)% on Windows OS 32bit
- how to get program files x86 env variable?
- Difference between masm32 and masm?
- How do I start PowerShell from Windows Explorer?
- A fatal error occurred while creating a TLS client credential. The internal error state is 10013
- What does “@” mean in Windows batch scripts
- What are good grep tools for Windows? [closed]
- How to run a PowerShell script
- How do I install and use cURL on Windows?
- How to list files in windows using command prompt (cmd). I’ve tried using ‘ ls ‘ as in Linux but it shows an error?
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- ow can I find where Python is installed on Windows?
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- Setting Windows PowerShell environment variables
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- Why is Windows 32-bit called Windows x86 and not Windows x32?
- How to run a PowerShell script
- Putty: Getting Server refused our key Error
- AWS – Disconnected : No supported authentication methods available (server sent :publickey)
- How can I open a cmd window in a specific location?
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- Create an empty file on the commandline in windows (like the linux touch command)
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- “X does not name a type” error in C++
- what is a “dump file” in windows task manager?
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- How do I run Redis on Windows?
- Need to navigate to a folder in command prompt
- How do I create a Batch file to change an exe installer to Win XP SP3 compatibility mode and launch installer
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- how to open an mp3 file with c
- mysql_config not found when installing mysqldb python interface
- ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known
- Pseudo-terminal will not be allocated because stdin is not a terminal
- X11 forwarding request failed on channel 0
- How to run a makefile in Windows?
- Command Prompt “Net View System Error 6118”
- git clone: Authentication failed for
- How to compile LEX/YACC files on Windows?
- How to run ‘sudo’ command in windows
- How to exit Python script in Command Prompt?
- Python command not working in command prompt
- Batch script loop
- What is the ‘realtime’ process priority setting for?
- Verify return code: 20 when testing OpenSSL
- Command ‘ls’ not working in command prompt
- Command line for looking at specific port
- How to uninstall a Windows Service when there is no executable for it left on the system?
- openssh windows bad owner or permissions
- What is the default password for Postgres
- “X does not name a type” error in C++
- Windows Activator .bat Text
- How To Activate Windows 10
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- mysql_config not found when installing mysqldb python interface
- mysql_config not found when installing mysqldb python interface
- how to edit or see the source code for dll files
- PermissionError: [WinError 5] Access is denied python using moviepy to write gif
- What is the difference between Cygwin and MinGW?
- Text editor to open big (giant, huge, large) text files
- UnicodeDecodeError: ‘charmap’ codec can’t decode byte X in position Y: character maps to
- PermissionError: [WinError 5] Access is denied python using moviepy to write gif
- Using GNU Scientific Library (GSL) under Windows x64 with MinGW
- Pseudo-terminal will not be allocated because stdin is not a terminal
- Xampp MySQL not starting – “Attempting to start MySQL service…”
- Visual C++ executable and missing MSVCR100d.dll
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- How to download a file from server using SSH?
- How to pass password to scp?
- Can’t start hostednetwork
- What is the ASCII Code of ½?
- scp gives “not a regular file”
- Docker for Windows error: “Hardware assisted virtualization and data execution protection must be enabled in the BIOS”
- Why Local Users and Groups is missing in Computer Management on Windows 10 Home?
- Trying to use bash on Windows and got no installed distributions message
- How to force `findstr` to ignore `Cannot open` returns
- Npm Please try using this command again as root/administrator
- Choosing a Windows automation scripting language. AutoIt vs Autohotkey
- “python” not recognized as a command
- sudo command not found on Cygwin
- OpenSSL: PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE
- What is Windows Fabric and how to host services in it?
- starting R: Error: ‘\U’ used without hex digits in character string starting “”C:\U”
- What is Windows Fabric and how to host services in it?
- How to scp in Python?
- Forward X11 failed: Network error: Connection refused
- npm ERR! No git binary found in $PATH
- connect to host localhost port 22: Connection refused
- Python not working in the command line of git bash
- How to run PowerShell in CMD
- Transfer files to/from session I’m logged in with PuTTY
- How to open an elevated cmd using command line for Windows?
- xcopy returns error “Invalid number of parameters” when exclude parameter is set
- SVN admin management GUI tool