admin login with ssh fails in restored configuration


  • 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?

  • Galactic Empire

    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 ~ %
    

  • @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.