I have 6224 with password based ssh working fine. The next step is to make it public-key based for some users.
I've configured the public key in the 6224. But still, when ssh-ing the 6224 with the private key, it asks for password. (if I configure a user without a password, the 6224 still ask for password. furthermore that user can login even without the private ssh key).
crypto key pubkey-chain ssh user-key "admin-ssh" rsa key-string row AAAAB3NzaC1yc2EAAAABIwAAAQEAqHb+sqZjuq02Fc5J61wojZH/zF3IpoaGXnLd09FdvyFPQMO66mITuZmKaKWCI3KVhHmoSWK6w2W6Z+0VYlP7trOO0Ig5rKKO1PA3M/LD8SwnbNi5avJpgs+vn0OyEptNiZmA1T1N3OMMWEyt0iHwffMdp9SFDtCLCxZORHFOyTE4cayotQblgDrsLC34XwtJdGRVNiSH/deBQCt9rSErG/WOJKVkpuavbCD9i2ULyQExqTpCv6wQGgNmOo2hUM6yHNL1u8gKCHtmGdKIA9rVcQ4AoOOq93FRPmsHYAyVhilK9RSaXokuhOFQh5cr9YyncAqWHVZMfO+prEQNu+OWjw== exit exit line ssh exec-timeout 60 exit ip ssh server ip ssh pubkey-auth ...
---------------
[gaash@rd01 ~/devices/rt01.it]$ssh -i ../keys/admin-rt -v admin-ssh@rt01.it OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010 debug1: Reading configuration data /users/eng/gaash/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to rt01.it [10.9.12.1] port 22. debug1: Connection established. debug1: identity file ../keys/admin-rt type 1 debug1: Remote protocol version 1.99, remote software version OpenSSH_4.3 debug1: match: OpenSSH_4.3 pat OpenSSH_4* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.3 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr hmac-md5 none debug1: kex: client->server aes128-ctr hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'rt01.it' is known and matches the RSA host key. debug1: Found key in /users/eng/gaash/.ssh/known_hosts:119 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering public key: ../keys/admin-rt debug1: Server accepts key: pkalg ssh-rsa blen 277 debug1: read PEM private key done: type RSA Authenticated with partial success. debug1: Authentications that can continue: password debug1: Next authentication method: password admin-ssh@rt01.it's password:
After talking this thru with a couple analysts we have come up with some useful information. This post from our forum discusses the same topic with a verified answer.
One should be able to view the authentication methods with the “show authentication methods” command. It looks like that by default SSH is set to the networkList Login Method List which sets the authentication method to local. If we change the Login method List to defaultList that should set the method to none as described in the posting above. We can do that with the commands below.
DELL-Willy M
802 Posts
8978
0
Posted July 20th, 2012 15:00
On 6224 switches, you must generate both RSA and DSA keys in order to enable SSH on the switch.
console# configure
console(config)#crypto key generate rsa RSA
key generation started, this may take a few minutes..... RSA key generation complete.
console# configure
console(config)#crypto
key generate dsa DSA key generation started, this may take a few minutes........................ DSA key generation complete.
If prompted that to overwrite any existing keys select Y for yes.
Can you provide the output for this command?
console#show ip ssh
From what I’m reading a valid ip address, username and password must be assigned in order to login via SSH after the keys are created.
I would also recommend that you have the latest firmware installed.
v3.3.3.3
http://www.dell.com/support/drivers/us/en/555/DriverDetails/DriverFileFormats?DriverId=53M6W&FileId=2923322702&productCode=powerconnect-6224&urlProductCode=False
Hope this helps,
Keep us updated if you can.