Find the answer to your Linux question:
Results 1 to 3 of 3
Alright, this isn't directly Linux. But it's basically linux. I am trying to get our Qnap to SCP all the config files out of our cisco switches. Please don't close ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2012
    Posts
    8

    RSA Pubkey authentication working, but not working at the same time.


    Alright, this isn't directly Linux. But it's basically linux.

    I am trying to get our Qnap to SCP all the config files out of our cisco switches. Please don't close the page yet, there is linux stuff coming!

    On our QNAP. I generated an RSA keypair

    ssh-keygen -t rsa

    Copied it to the server.

    Also copied it to ~/.ssh/authorized_keys

    This isn't the problem, take a look:

    debug1: Host 'xxxxxxxxxxxxxx' is known and matches the RSA host key.
    debug1: Found key in /share/MD0_DATA/xxxx/.ssh/known_hosts:5
    ...
    debug1: Authentications that can continue: publickey
    debug1: Next authentication method: publickey
    debug1: Offering public key: /share/MD0_DATA/xxxx/.ssh/id_rsa
    debug1: Server accepts key: pkalg ssh-rsa blen 277
    debug1: read PEM private key done: type RSA
    debug1: Authentication succeeded (publickey).
    debug1: Entering interactive session.

    User Name:

    WHAT?! Username?!

    It just told me that it was successful, why am I being prompted for username?

    Perhaps this is a security setting with the switch itself. I just thought I would ask if anyone else encountered this issue using regular linux and how you might have fixed it?

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    877
    I have hard time understanding your issue. Any login, key or password based is tied to a user account. Default is the user using it, if there is no such user in remote system you have to provide it from command line (-l user) or interactively.

  3. #3
    Just Joined!
    Join Date
    Dec 2012
    Posts
    8
    Quote Originally Posted by Segfault View Post
    I have hard time understanding your issue. Any login, key or password based is tied to a user account. Default is the user using it, if there is no such user in remote system you have to provide it from command line (-l user) or interactively.
    Apologies.

    We normally ssh using cisco@<ip> and a password. There is a "cisco" user.

    The lines I posted above was from issuing the ssh cisco@<sw IP> -vvv

    So the user does exist, and the publickey was accepted. I quickly setup two centos VMs and got it working first try. I think it's a cisco thing. I have posted there. Thanks for the help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •