Using putty to scp from windows to Linux
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 ckg8221@thor.cs.wmich.edu:
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 ckg8221@thor.cs.wmich.edu:
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 ckg8221@thor.cs.wmich.edu:/home/path_to_the_folder/
Transfer files to/from session I'm logged in with PuTTY
This is probably not a direct answer to what you're asking, but when I need to transfer files over a SSH session I use WinSCP, which is an excellent file transfer program over SCP or SFTP. Of course this assumes you're on Windows.
How do I transfer files from Unix machine connected using Putty to windows PC through SCP command?
Based on @Jakuje's answer I tried PSCP using Super Putty to upload and download files from UNIX box to my windows PC.
Super Putty has a built in option to integrate PSCP.exe into it by mentioning the path of PSCP.
Used this link to integrate.
Related Topics
Fast Concatenate Multiple Files on Linux
Anyway Change the Cursor "Vertical Line" Instead of a Box
Enable/Disable Tasks in Crontab by Bash/Shell
Undefined Reference to 'Clock_Gettime' Although '-Lrt' Is Given
How Were the Weightings in the Linux Load Computation Chosen
Does Gcc, Icc, or Microsoft's C/C++ Compiler Support or Know Anything About Numa
How to Sleep in the Linux Kernel Space
Code Snippet Managers for Linux Desktops
Loading U-Boot in Memory Instead of Flashing It
Language-Agnostic Properly-Tabbing Code Editors for Linux
Linux Perf Reporting Cache Misses for Unexpected Instruction
Creating a System Call in Linux
How to Tell If a File Is Older Than 30 Minutes from /Bin/Sh
Change Directory and Execute File in One Command
Linux Bash: Move Multiple Different Files into Same Directory
Getting Error on Supervison on Supervisorctl Error (No Such Process)