Already SSH with the help of putty into AWS EC2 instance, Now, using rsync with the following command.I am using Windows 10.
rsync -av /Users/Lenovo/Desktop/dir1/* ec2-user@xx.xxx.xxx.xxx:/file
file is a directory which is created in the ec2 instance on Remote.
Followed this post but not able to resolve.
Permission denied (publickey).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]