some points.
1. first before you can automate the scp of files you first must automate the permissions. do that by reading the links in my signature about ssh keys.
2. as you are running putty, this might not work well for you as i dont have the slightest clue how to get MS windows OS to create a proper ssh key.
3. the steps above are very clear. screen works in putty, if and only if screen is configured on the computer you are remotting into on the other end.
4. provided that screen works, you would perform the following:
Code:
Last login: Tue Dec 17 16:41:25 on ttys000
user-imac:~ ssma$ ssh user@server
Last login: Tue Dec 17 16:43:37 2013 from imac
[user@server ~]$ screen
this should clear your current screen
now issue your scp command, and if you are unable to create ssh keys, then type in the password. you can now type: CTRL + D to detach and exit out of putty. that is a capitol D, not a lower case. like most commands in Linux, screen is case sensitive.
https://www.rackaid.com/resources/li...al-and-how-to/
read there for more info on screen.