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
0
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.
Gaash
10 Posts
0
July 20th, 2012 21:00
Hi,
I'm running the latest version 3.3.3.3 as indicated by the configuration's 2nd line.
Both RSA & DSA keys have been generated. See below. To remove any doubt, ssh password authentication works. Problem is with public-key authentication.
A user was defined. Why a user password is required if public-key authentication is used?
In short, problem is not solved.
Regards,
Gaash
rt01.it#show ip ssh
SSH Server enabled. Port: 22
Protocol Levels: Versions 1 and 2.
RSA key was generated.
DSA key was generated.
SSH Public Key Authentication is enabled.
Active Incoming Sessions.
Ip Address User Name Idle Time Session Time
--------------- --------------- ------------ ------------
10.9.8.11 admin 00:00:00 00:00:14
DELL-Willy M
802 Posts
0
July 24th, 2012 16:00
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.
en.community.dell.com/.../19935126.aspx
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.
console>enable
console#config
console(config)#line ssh
console(config-ssh)#login authentication defaultList
console(config-ssh)#end
console#show authentication methods
console#copy running-config startup-config
Thanks for your patience
Gaash
10 Posts
0
July 25th, 2012 14:00
Setting ssh authentication to defaultList prevents ssh login, both with password and public key.
rt01.it.qwilt.com#configure
rt01.it.qwilt.com(config)#line ssh
rt01.it.qwilt.com(config-ssh)#login authentication defaultList
rt01.it.qwilt.com(config-ssh)#end
rt01.it.qwilt.com#show authentication methods
Login Authentication Method Lists
---------------------------------
defaultList : none
networkList : local
Enable Authentication Method Lists
----------------------------------
enableList : none
Line Login Method List Enable Method List
------- ----------------- ------------------
Console defaultList enableList
Telnet networkList enableList
SSH defaultList enableList
HTTPS :local
HTTP :local
DOT1X :
rt01.it.qwilt.com#show version
Image Descriptions
image1 : default image
image2 :
Images currently available on Flash
--------------------------------------------------------------------
unit image1 image2 current-active next-active
--------------------------------------------------------------------
1 3.3.1.10 3.3.3.3 image2 image2
[gaash@m01 ~/devices/rt01.it]$ssh admin@rt01.it
buffer_get_ret: trying to get more bytes 4 than in buffer 0
buffer_get_int: buffer error
[gaash@m01 ~/devices/rt01.it]$ssh -i ../keys/admin-rt admin@rt01.it
buffer_get_ret: trying to get more bytes 4 than in buffer 0
buffer_get_int: buffer error
[gaash@m01 ~/devices/rt01.it]$
[gaash@m01 ~/devices/rt01.it]$ssh -v
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
DELL-Willy M
802 Posts
1
July 25th, 2012 16:00
Have you run this command from Global Config?
Console(config)# ipip ssh pubkey-auth - Enables public key authentication for incoming SSH sessions.
Gaash
10 Posts
0
July 25th, 2012 21:00
We are making some progress but we are not there yet.
"ip ssh pubkey-auth" was configured
At my previous post I used to wrong login name for publickey. Here is the updated statues:
Without "login authentication defaultList":
"admin" user - password based - may login (and may enable privilege mode without enable password)
"admin-ssh" user - public-key - can't login. (thats OK)
With "login authentication defaultList":
"admin" user - password based - cannot login - ssh client buffer error as before - issue #1
"admin-ssh" user - public-key - logins successfully but cannot enable privilege mode - issue #2
Below is the relevant configuration fragment and issues output
Thanks
Gaash
no passwords min-length
username "admin" password xxxx level 15 encrypted
crypto key pubkey-chain ssh
user-key "admin-ssh" rsa
key-string row xxxxx
exit
exit
line ssh
exec-timeout 60
login authentication defaultList
exit
ip ssh server
ip ssh pubkey-auth
!
issue #1:
------------
[gaash@m01 ~/devices/rt01.it]$ssh admin@rt01.it
buffer_get_ret: trying to get more bytes 4 than in buffer 0
buffer_get_int: buffer error
issue #2
------------
[gaash@m01 ~/devices/rt01.it]$ssh -i ../keys/admin-rt admin-ssh@rt01.it
rt01.it.qwilt.com>en
Access Denied! You are not authorized to enter into Privilege mode!
rt01.it.qwilt.com>logoutConnection to rt01.it closed.
Gaash
10 Posts
0
August 4th, 2012 03:00
Would someone from Dell take a look?
DELL-Willy M
802 Posts
1
August 6th, 2012 12:00
Gaash,
Could you email a show run of the config on your switch along with a show authentication methods?
William_Marsh@Dell.com
What we need to do is tell it to authenticate with whatever method shows up under show authentication methods and add the appropriate aaa command.