Pages

Tuesday, December 03, 2019

AWS EC2 WinSCP SCP su root

To copy files to Amazon Linux via WinSCP using SCP as root:


Open WinSCP | New Session
Set File protocol: SCP
Set Host name:
Set Advanced | Environment | SCP /Shell: sudo su -


You can now authenticate as ec2-user with your private key,or perhaps with a password if you allow that, and copy files to directories requiring root access.
 

 

No comments:

Post a Comment