Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Download accesslog to local machine

Discussion in 'Security' started by MHD_MUS, May 24, 2014.

  1. MHD_MUS

    MHD_MUS Member

    Joined:
    Jun 29, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I want to know an exact command or syntax to run on Terminal (Mac) as SSH to download the file "/usr/local/cpanel/logs/access_log" to my local Desktop folder.

    Your contribution is appreciated,
    Thanks in advance,
    Regards.
     
  2. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    1,010
    Likes Received:
    87
    Trophy Points:
    78
    cPanel Access Level:
    DataCenter Provider
    I think mac terminals have scp. If so,

    scp -P22 root@your.host.name:/usr/local/cpanel/logs/access_log ./access_log

    Change 22 to your SSH port if it's non-standard.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,380
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, you can use the command suggested in the previous post for SCP, or download a SFTP client such as FileZilla if you prefer a graphical interface.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice