I am using putty for copying files from local machine to remote server.My folder is in C:/site
can any one give syntax for copying folder from C:/site
to remote server using scp
Asked
Active
Viewed 1.2e+01k times
40

Adil Shaikh
- 44,509
- 17
- 89
- 111

Warrior
- 5,168
- 12
- 60
- 87
-
id is the login ID you use for the server, server = ip address. – Pavan Yalamanchili May 10 '11 at 07:23
-
if i want to copy in folder how i can specify the folder – Warrior May 10 '11 at 07:26
-
append `:path` after the ip. See my answer (: – Kiril Kirov May 10 '11 at 07:27
2 Answers
82
scp -r C:/site user@server_ip:path
path
is the place, where site
will be copied into the remote server
EDIT: As I said in my comment, try pscp
, as you want to use scp
using PuTTY
.
The other option is WinSCP

Kiril Kirov
- 37,467
- 22
- 115
- 187
-
-
Can you paste here the whole command, that you use (without user/pass, put *** in their place (: ) – Kiril Kirov May 10 '11 at 07:41
-
-
@THOmas - remove the space after `:`. It must be: `scp -r C:/site *****@$$$$$:/var/www/newfolder` – Kiril Kirov May 10 '11 at 07:49
-
try `ls -la C:/site` to see if this will show something or this location does not exiests. What is you OS? Looks like `unix` base to me, because of the slash ( `/` ), but if so, you don't have `C:/` in linux. – Kiril Kirov May 10 '11 at 08:00
-
-
I think you should use WinSCP (http://winscp.net/eng/index.php) and I'm not sure, that PuTTY can do this. – Kiril Kirov May 10 '11 at 08:13
-
Thank Kiril Kirov.. I have used winscp for copying files ..I am trying to use Putty... :) – Warrior May 10 '11 at 08:15
-
OOh, I get it. OK then, change `scp` to `pscp` and try again. If this don't work, I can't help you anymore, as I have used PuTTY very little. – Kiril Kirov May 10 '11 at 08:20
4
In stall PuTTY in our system and set the environment variable PATH Pointing to putty path. open the command prompt and move to putty folder. Using PSCP command

Warrior
- 5,168
- 12
- 60
- 87