I did this to copy files between Windows and Linux.
C:\Documents and Settings\668340\My Documents\putty>pscp "C:\Documents and Settings\563456\abc.txt" "email@example.com:/home/auto/"
But it prompts for a password and how do i automate this task using private/public key pairs between windows and linux
winscp works but only problem is that i have to use hard coded password in the code, which I don't want. Instead I want to use private/public key addition concept but not aware how to do it when it is windows.
EDIT:i mean i can go with passwordless authentication but still it involes ,the manual process of generating public,private keys(.ppk) using
puttygen.exe in windows and then
copying the public key to
.ssh\authorized in linux.is there any way to automate this.
EDIT:if there is any of copying files by running some shell script of command in unix to copy file to windows that could also be usefull as i can create public/private keys in unix automatiaclly.