Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Why the authorized_keys are deleted at startup ?

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xhark
      last edited by

      Hi,

      I have made a cron who made an archive of few important files and directories.
      I would like to access to my pfSense from another server to download this file with ssh/scp.

      But in v2.0 (RC3) there is a script : /etc/sshd that deleted the /root/.ssh/authorized_keys (and many other private and public keys).

      Why ? Is there another (good) way to do this ?

      (note: I know it is not considered "secure" to do this, but I'll restrict the source IP adr with a FW rule)
      Thank you :)

      SysNetAdmin & Blogger on http://blogmotion.fr

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Add the keys in the GUI and they are written out from there.

        There is a box under System > Advanced, and one in each user, in which you can paste the keys.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • X
          xhark
          last edited by

          Thank you, it works !

          SysNetAdmin & Blogger on http://blogmotion.fr

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.