This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unable to download archive logs via ssh

Hi Team,

We look to be unable to download some logs via ssh getting permission denied. It looks to be achieved logs ending in .0



This thread was automatically locked due to age.
Parents Reply Children
  • Hi Thanks for your response we are using this method https://community.sophos.com/kb/en-us/123337

    However, have noticed the following;

    o   All files named x.log have permissions -rw-r--r--. This means read access to all, read/write to the owner (user root).

    o   All files named x.log.0 have permissions -rw-------. This means only the owner (user root) can access them. Since we are logging in as user admin, we clearly don’t have read permissions on the rotated log files

    What's the best method to access the files and download with scp?

  • FormerMember
    0 FormerMember in reply to Adrian De Santi

    Hi  

    I have replicated this in my LAB, and it appears the files with permission "-rw-------" can't be downloaded or copied with SCP. 

    I would suggest you to use FTP to upload log files form XG to FTP server.  You could use the following command: curl -T filename.log.0 ftp://<UserName>:<Password>@<FTP Server>

    Thanks,