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

    My pfsense failed an audit by securitymetrics.com

    Scheduled Pinned Locked Moved Firewalling
    46 Posts 6 Posters 21.4k 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.
    • K Offline
      kapara
      last edited by

      Here is a new example:

      ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIBb5HVQf5Nbdu6+bC2dE2bM1ZNC/7USV/jJRcRNtBSu9plZCEAz4BRwCkMiuHlFNHT+FO6fjcdg9Jzb/csZ8SyVP9wY0iSDYeDd9eY5N04LceCGb2AxqrL24a09BftVSlQnXvbsPaume+fKgVVMo6NCDoUhPI917PUyIlNZ8YBD9w== rsa-key-20100303

      I pasted this into System:Advanced:Secure Shell:Authorized Keys.  Saved.

      Then open Putty and loaded session with internal pfsense IP.  Clicked on Auth in Putty and browsed to the Private.pkk file which I downloaded from puttygen.

      Fail.  ???

      Skype ID:  Marinhd

      1 Reply Last reply Reply Quote 0
      • J Offline
        jlepthien
        last edited by

        Yep. That sounds about right. Are you running 1.2.3 also?

        | apple fanboy | music lover | network and security specialist | in love with cisco systems |

        1 Reply Last reply Reply Quote 0
        • K Offline
          kapara
          last edited by

          1.2.3-RELEASE
          built on Mon Dec 7 20:21:30 EST 2009

          Skype ID:  Marinhd

          1 Reply Last reply Reply Quote 0
          • K Offline
            kapara
            last edited by

            Should I remove:  rsa-key-20100303 from the end of the key?

            Skype ID:  Marinhd

            1 Reply Last reply Reply Quote 0
            • J Offline
              jlepthien
              last edited by

              Nope. I have that, too….

              Please check when logged in that the key is really there....

              cat .ssh/authorized_keys

              | apple fanboy | music lover | network and security specialist | in love with cisco systems |

              1 Reply Last reply Reply Quote 0
              • K Offline
                kapara
                last edited by

                you mean check via winscp?

                Skype ID:  Marinhd

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jlepthien
                  last edited by

                  No. Login via putty and ssh. And then do that command in /root

                  | apple fanboy | music lover | network and security specialist | in love with cisco systems |

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    kapara
                    last edited by

                    Seems to be going from Bad to worse.

                    I deleted the key and unchecked the box disabling password for SSH.  No when I connect I get:

                    Disconnected:  No Supported authentication methods available.

                    Skype ID:  Marinhd

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      jlepthien
                      last edited by

                      Use your console to connect to the box…

                      | apple fanboy | music lover | network and security specialist | in love with cisco systems |

                      1 Reply Last reply Reply Quote 0
                      • K Offline
                        kapara
                        last edited by

                        ok.  Disables SSH and enabled and now I am back in.

                        cat: .ssh/authorized_keys: No such file or directory

                        Skype ID:  Marinhd

                        1 Reply Last reply Reply Quote 0
                        • K Offline
                          kapara
                          last edited by

                          Ok.  So I repasted info and connected with private ket and got the following:

                          login as: root
                          Server refused our key
                          Using keyboard-interactive authentication.
                          Password:

                          Though I was able to get through….

                          Skype ID:  Marinhd

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            jlepthien
                            last edited by

                            Also when you login as 'admin'?

                            | apple fanboy | music lover | network and security specialist | in love with cisco systems |

                            1 Reply Last reply Reply Quote 0
                            • K Offline
                              kapara
                              last edited by

                              I am able to get in no matter what…

                              Skype ID:  Marinhd

                              1 Reply Last reply Reply Quote 0
                              • J Offline
                                jlepthien
                                last edited by

                                Log in again and then do:

                                • cd /root
                                • cd .ssh
                                • ls -la (post output, there should be a authorized_keys files after you pasted your key via GUI)

                                Are you running on embedded?

                                | apple fanboy | music lover | network and security specialist | in love with cisco systems |

                                1 Reply Last reply Reply Quote 0
                                • K Offline
                                  kapara
                                  last edited by

                                  Yes Embedded….

                                  [1.2.3-RELEASE]                                                                [root@wall.test.local]/root(1): cd /root
                                  [1.2.3-RELEASE]                                                                [root@wall.test.local]/root(2): cd .ssh
                                  [1.2.3-RELEASE]                                                                [root@wall.test.local]/root/.ssh(3): ls -la
                                  total 1
                                  drwx–----  2 root  wheel  512 Mar  4 07:49 .
                                  drwxr-xr-x  4 root  wheel  512 Mar  4 05:08 ..
                                  [1.2.3-RELEASE]                                                                [root@wall.test.local]/root/.ssh(4):

                                  Skype ID:  Marinhd

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    jlepthien
                                    last edited by

                                    So there is something wrong with your install. The authorized_keys file does not get created.

                                    Try this:

                                    • /etc/rc.conf_mount_rw
                                    • then create the file manually with e.g. vi /root/.ssh/authorized_keys and paste in your key
                                    • /etc/rc.conf_mount_ro

                                    Then check again…

                                    | apple fanboy | music lover | network and security specialist | in love with cisco systems |

                                    1 Reply Last reply Reply Quote 0
                                    • K Offline
                                      kapara
                                      last edited by

                                      vi/root/.ssh/authorized_keys: Command not found.

                                      Skype ID:  Marinhd

                                      1 Reply Last reply Reply Quote 0
                                      • K Offline
                                        kapara
                                        last edited by

                                        here is a screen shot via winscp….

                                        Capture.PNG
                                        Capture.PNG_thumb

                                        Skype ID:  Marinhd

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          jlepthien
                                          last edited by

                                          vi and a [space] after that…

                                          | apple fanboy | music lover | network and security specialist | in love with cisco systems |

                                          1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            jlepthien
                                            last edited by

                                            @kapara:

                                            here is a screen shot via winscp….

                                            So? That is /etc/ssh and on your box…
                                            You generated the key on your windows system, didn't you?
                                            The keys need to be in /root/.ssh/

                                            | apple fanboy | music lover | network and security specialist | in love with cisco systems |

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