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
- how to get program files x86 env variable?
- Difference between masm32 and masm?
- A fatal error occurred while creating a TLS client credential. The internal error state is 10013
- What are good grep tools for Windows? [closed]
- 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
- Setting Windows PowerShell environment variables
- How to run a PowerShell script
- Putty: Getting Server refused our key Error
- How can I open a cmd window in a specific location?
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known
- How to run a makefile in Windows?
- How to compile LEX/YACC files on Windows?
- How to exit Python script in Command Prompt?
- Python command not working in command prompt
- Verify return code: 20 when testing OpenSSL
- Command line for looking at specific port
- How to uninstall a Windows Service when there is no executable for it left on the system?
- Windows Activator .bat Text
- How To Activate Windows 10
- how to edit or see the source code for dll files
- What is the difference between Cygwin and MinGW?
- UnicodeDecodeError: ‘charmap’ codec can’t decode byte X in position Y: character maps to
- Pseudo-terminal will not be allocated because stdin is not a terminal
- Xampp MySQL not starting – “Attempting to start MySQL service…”
- Python 3.2 Unable to import urllib2 (ImportError: No module named urllib2)
- How to pass password to scp?
- Can’t start hostednetwork
- scp gives “not a regular file”
- Trying to use bash on Windows and got no installed distributions message
- 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?
- How to scp in Python?
- Forward X11 failed: Network error: Connection refused
- npm ERR! No git binary found in $PATH
- 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?
- SVN admin management GUI tool
- Is there a WinSCP equivalent for Linux?
- Setting up a cron job in Windows
- cat not recognised as an internal or external command
- While loop in batch
- Error occurred during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object)
- Bridged networking not working in Virtualbox under Windows 10
- How to send a simple email from a Windows batch file?
- How can I run a program from a batch file without leaving the console open after the program starts?
- Convert PEM to PPK file format
- What exactly is the scope of Access Violation ‘0xc0000005’?
- How can I do GUI programming in C?
- What does /p mean in set /p?
- Copying files from server to local computer using SSH
- How do I get the current username in Windows PowerShell?
- OS x El capitan 10.11 – Virtualbox – Missing Bluetooth Controller Transport
- batch file from scheduled task returns code 2147942401
- How to split large text file in windows?
- CALL command vs. START with /WAIT option
- BAT file to map to network drive without running as admin
- mysql community server vs mysql installer
- Aliases in Windows command prompt
- What is a Windows Handle?
- Calling dir in cmd prints out: “Volume in drive C has no label.”
- Difference between $? and $LastExitCode in PowerShell
- How to use/install GNU binutils (objdump)
- The requested operation cannot be performed on a file with a user-mapped section open
- “NODE_ENV” is not recognized as an internal or external command, operable command or batch file
- How to set commands output as a variable in a batch file
- HyperV is not available on Home editions
- Batch command for ImageMagick to convert all files in a directory and sub-directories on windows
- Unable to start MySQL server
- Dependency Walker: missing dlls
- How do I execute a *.dll file
- How to enable Bash in Windows 10 developer preview?
- how to empty recyclebin through command prompt?
- Automating command/script execution using PuTTY
- You require permission from “Myself” to delete folder – how to fix
- How to configure WP filesystem access in Linux (Ubuntu Server)?
- moving server can not login
- Migrating WordPress from Windows Server 2008 R2 (IIS v7.5) to CentOS
- Can I automatically add a new host to known_hosts?
- Can I nohup/screen an already-started process?
- Is it normal to get hundreds of break-in attempts per day?
- how to disable SSH login with password for some users?
- how do you create an ssh key for another user?
- How to recover from “Too many Authentication Failures for user root”
- Show all users and their groups/vice versa
- swap partition vs file for performance?
- What’s wrong with always being root?
- Hundreds of failed ssh logins
- protocol version mismatch — is your shell clean?