NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

davidr1's avatar
davidr1
Luminary
Jul 31, 2021
Solved

ssh: permission denied (publickey)

Hi,

I tried to ssh into my 314, root@192.168.x.x

I got a message saying, from memory, did I want to import the certificate (yes,no)

Replied yes

But now what happens is:

ssh root@192.168.x.x
root@192.168.x.x: Permission denied (publickey).

I've never come accross this before. Any help, please? (Unsuccessful on google & netgear)

Regards,

david

  • One thing you could try is deleting the known_hosts file in the pc.

     

    This is in c:\users\user-name\.ssh (which is a hidden folder).  You'll get the prompt on whether you want to trust the NAS again after you do this.

5 Replies

Replies have been turned off for this discussion
  • StephenB's avatar
    StephenB
    Guru - Experienced User

    Check that "password authentication" is checked in the SSH settings in system->settings->services.

     


    davidr1 wrote:

    Hi,

    I tried to ssh into my 314, root@192.168.x.x

    I got a message saying, from memory, did I want to import the certificate (yes,no)

     


    Was this the first time you used ssh to connect to the NAS on this PC?  There will be a prompt asking asking if you trust the NAS, and showing you some fingerprint information.  Importing the certificate allows you to avoid that prompt in the future.

    • Sandshark's avatar
      Sandshark
      Sensei - Experienced User

      When you enabled SSH, did yoiu check the "Enable password authentication" box?

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        One thing you could try is deleting the known_hosts file in the pc.

         

        This is in c:\users\user-name\.ssh (which is a hidden folder).  You'll get the prompt on whether you want to trust the NAS again after you do this.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More