PSFTP from windows server to Linux server with key authentication

From windows server:
Download puttygen.exe, putty.exe, and psftp.exe
Run puttygen.exe to generate a private key, grep the public key generated and put into the Linux server’s authorized_keys file.

Use putty to save a session of the Linux server that you want to connect, remember to put in the username to connect.
Create a file containing the command that you want to execute; we will download “install.log” from 
Linux server in our example.
lcd C:\Users\Anthony\Documents\work\test
cd /root
get install.log
You may now run manually to test the script, and may add to scheduler later.
Syntax: psftp.exe -b

No comments: