I am trying to copy a log file from an Amazon EC2 instance to my local machine (Windows 7). I am using WinSCP438
, which is able to connect to the remote (Amazon EC2) server instance. I am trying to access the instance as the "root" user in WinSCP using the method described here, but I am getting an error shown in the below image:
Why I am getting this error, and how do I copy the file from remote server (Amazon EC2) to my local machine?
Update: Output of commands, as requested:
$ sudo ls -ld /var/log/tomcat7
drwxrwx--- 2 tomcat root 4096 Jul 4 12:01 /var/log/tomcat7
$ id
uid=222(ec2-user) gid=500(ec2-user) groups=500(ec2-user), 10(wheel)