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

      Tried setting up SSH Authorized Key but it does not seem to work.

      I pasted the following from the Public Key File created using puttygen:

      –-- BEGIN SSH2 PUBLIC KEY ----
      Comment: "rsa-key-20100303"
      AAAAB3NzaC1yc2EAAAABJQAAAIEAiNNMQ8KAZQhyRdek5p/anBZpBiBCsiF3BzGb
      vDhGtCC+oFj7/jJsmLcPmUcxQp/L5Gz0fBzQUEcd1AZK3gTG/pEHzE8x2PU5iqSX
      +LBbHIDQZuz461iiMwnL9Xu8I9T2+B7i3KX/t34SvubWYPvP6ZO/Q/+Rdmbwmmsb
      GZ2FC1U=
      ---- END SSH2 PUBLIC KEY ----

      I was still able to connect via SSH without the need of any private key.  Also disable passord login for secure shell.  Still getting prompt for username password and able to login.

      Skype ID:  Marinhd

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

        Try omitting the begin, end, and comment lines.

        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
        • K Offline
          kapara
          last edited by

          Like this:

          AAAAB3NzaC1yc2EAAAABJQAAAIEAiNNMQ8KAZQhyRdek5p/anBZpBiBCsiF3BzGb
          vDhGtCC+oFj7/jJsmLcPmUcxQp/L5Gz0fBzQUEcd1AZK3gTG/pEHzE8x2PU5iqSX
          +LBbHIDQZuz461iiMwnL9Xu8I9T2+B7i3KX/t34SvubWYPvP6ZO/Q/+Rdmbwmmsb
          GZ2FC1U=

          or

          ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiNNMQ8KAZQhyRdek5p/anBZpBiBCsiF3BzGb
          vDhGtCC+oFj7/jJsmLcPmUcxQp/L5Gz0fBzQUEcd1AZK3gTG/pEHzE8x2PU5iqSX
          +LBbHIDQZuz461iiMwnL9Xu8I9T2+B7i3KX/t34SvubWYPvP6ZO/Q/+Rdmbwmmsb
          GZ2FC1U=

          Skype ID:  Marinhd

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

            Like the second one. That's what I do…

            | 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

              When I use the one with ssh-rsa I get connection refused.  When I go to auth in putty and select the private.pkk file and try to open the connection I get connection error.

              Skype ID:  Marinhd

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

                Did you get your key by opening puttygen and loading your private key there?

                | 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 generate public key and copy then export private key. Right?

                  Skype ID:  Marinhd

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

                    You can use puttygen to generate a pair and then copy the key from the top of the window which says "Public key for pasting into OpenSSH authorized_keys file:"…

                    | 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

                      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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.