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

Forum Discussion

pjhunter's avatar
pjhunter
Aspirant
Jul 25, 2020
Solved

SSH access to RN312 fails

Environment:

RN312 w/ 2 4TB drives mirrored

Trying to access from a Linux box via public/private keys.

SSH on RN312 enabled with password authentication disabled (although I've tried it both ways)

Admin user has shell access checked. Keys successfully uploaded.

 

Symptoms:

When I try to initiatiate an ssh login from the Linux box, there is a pause and then the connection is "Rejected"

The debug output from the Linux box is in "Client SSH debug log" below.  About 2/3 of the way down, the client authentication is accepted (highlighted by me in red).  There is some more negotiation then after the line "debug2: shell request accepted on channel 0" the RN312 responds with "Rejected" (again highlighted in red).

 

I can't seem to find the ssh.log on the RN312 to see if there is any more information as to why it is rejecting a shell request.

 

I am doing this because the Linux box has a backup program that will backup up using ssh and it fails because whenever it opens the channel to the RN312, the connection is immediately closed.

 

Any help/experience will be greatly appreciated.  SSH is not my strong suit.

  • Well, it is solved.

    schumaku I was attempting to connect with "admin" not "Admin" as I had incorrectly typed.

    StephenB I always thought root and admin were synonymous.  However, as schumaku suggested, I will probably create a separate backup user.

     

    The solution... when I was importing the public key from the linux box I was trying to connect from, I had not unchecked the "RSYNC" box on the key.  Once I did that, I connected without problem and I was able to successfully execute a backup from the linux box and have it show up in the appropriate backup directory I created on the RN312.

     

    Funny how simple things can cause hours of hair-pulling and frustration.

4 Replies

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

    pjhunter wrote:

    Admin user has shell access checked. Keys successfully uploaded.


    Aehm, it would be admin (not Admin as case sensitive) - however it's root to be used instead of admin. Better create an alternate user account for backup purposes with public key access.

    • StephenB's avatar
      StephenB
      Guru - Experienced User

      I agree you should be using root with ssh/linux CLI.  That is preset to use password authentication. 

       

      My recollection is combining passwords and public certficates doesn't work well (though it's been a while since I saw posts on that).

       

       

  • Well, it is solved.

    schumaku I was attempting to connect with "admin" not "Admin" as I had incorrectly typed.

    StephenB I always thought root and admin were synonymous.  However, as schumaku suggested, I will probably create a separate backup user.

     

    The solution... when I was importing the public key from the linux box I was trying to connect from, I had not unchecked the "RSYNC" box on the key.  Once I did that, I connected without problem and I was able to successfully execute a backup from the linux box and have it show up in the appropriate backup directory I created on the RN312.

     

    Funny how simple things can cause hours of hair-pulling and frustration.

    • StephenB's avatar
      StephenB
      Guru - Experienced User

      pjhunter wrote:

       

      StephenB I always thought root and admin were synonymous. 


      They are not.  There are some scenarios where executing linux commands as admin (instead of root) can damage your OS partition (making the NAS unaccessable).

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