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

    admin login with ssh fails in restored configuration

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    3 Posts 2 Posters 259 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.
    • A
      amnixed
      last edited by

      Hello,

      I have restored a saved configuration from an SG-5100 to a non-Netgate device. With some minor adjustments (interface names) restoring from backup went well.

      The SG-5100 is a production device, the non-Netgate device is a standby spare.

      However, in the restored configuration, login with ssh as admin/[password] fails:

      sshd 	53894 	error: PAM: Authentication error for admin from 10.61.70.200 
      

      But login through the web interface works fine (same credentials, of course):

      php-fpm 	337 	/index.php: Successful login for user 'admin' from: 10.61.70.200 (Local Database)
      

      Could someone please explain?

      1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad
        last edited by NogBadTheBad

        Try removing your ssh known hosts file on the device you are running ssh from, the ssh key has changed.

        Last login: Fri Aug 28 20:42:31 2020
        andy@mac-pro ~ % ls -alg .ssh 
        total 16
        drwx------   3 staff    96 Jun 15 10:27 .
        drwxr-xr-x+ 33 staff  1056 Aug 30 08:28 ..
        -rw-r--r--   1 staff  4781 Aug 24 15:33 known_hosts
        andy@mac-pro ~ %
        

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        A 1 Reply Last reply Reply Quote 0
        • A
          amnixed @NogBadTheBad
          last edited by

          @NogBadTheBad said in admin login with ssh fails in restored configuration:

          Try removing your ssh known hosts file on the device you are running ssh from, the ssh key has changed.
          [...]

          I do get prompted for password, and then you can see the "Authentication error" in the log file - so this past the ssh fingerprint detection.

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