Here is my current setup:
- Connect to a Ubuntu server (Let's call this the server) from Windows
- Do something interesting.
- Send files from server 1 to another Ubuntu box (the box).
I used to store a private key on the server to allow password prompt-less scp, but I've been told that I'm not allowed to keep a private key on the server. Which brings us to my question:
EDIT: I should note that I'll be setting up a cronjob for most of scp processes.
How do I scp without password prompt without using private key or stdin method as shown in this thread: https://stackoverflow.com/questions/3872200/passing-the-password-as-a-parameter-in-a-scp-command
p.s. Not that this is a preferred method, but someone suggested ssh agent forwarding to achieve this, but I'm having trouble understanding what that is, and how it's applicable in my situation.
server
, but can you keep a private key onbox
?box
or do you have to connect throughserver
?