The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    940
    Likes Received:
    55
    Trophy Points:
    28
    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:
    30,678
    Likes Received:
    649
    Trophy Points:
    113
    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.
     
Loading...

Share This Page