stormshift / support

This repo should serve as a central source for reporting issues with stormshift
GNU General Public License v3.0
3 stars 0 forks source link

NetApp configure ssh public key auth #176

Closed rbo closed 3 months ago

rbo commented 3 months ago
fas2552::> security login modify -user-or-group-name admin -application ssh -second-authentication-method publickey -role admin -vserver fas2552 -authentication-method password
Warning: To use public-key authentication, you must create a public key for user "admin".             

fas2552::> security login publickey create -username admin -index 0 -publickey "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEQM82o2imwpHyGVO7DxCNbdE0ZWnkp6oxdawb7/MOCT coe-muc"      

fas2552::> 

ssh -i ~/.ssh/coe-muc -l admin netapp-mgmt.coe.muc.redhat.com
Warning: Permanently added 'netapp-mgmt.coe.muc.redhat.com' (ED25519) to the list of known hosts.
(admin@netapp-mgmt.coe.muc.redhat.com) Password:

Doesn't work...

rbo commented 3 months ago
fas2552::> security login modify -user-or-group-name admin -application ssh -second-authentication-method none -role admin -vserver fas2552 -authentication-method publickey    
rbo commented 3 months ago

Plain password still works:

[root@inf1 ~]# ssh -l admin netapp-mgmt.coe.muc.redhat.com
Password:

Last login time: 5/28/2024 09:16:02
fas2552::> 
rbo commented 3 months ago

For information:

fas2552::> security login publickey show -vserver fas2552 -username admin                                                                                                   

Vserver: fas2552
UserName: admin            Index: 0
Public Key:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEQM82o2imwpHyGVO7DxCNbdE0ZWnkp6oxdawb7/MOCT coe-muc
Fingerprint:
SHA256:HuvK9NFv2fNXkt5dfTGS3YKS7v2q6wH7KomOH70ie/U
Bubblebabble fingerprint:
xenib-togel-sezip-zusyn-fezib-gucis-hyryh-faver-fytak-coboc-toxux
Comment:
-

Vserver: fas2552
UserName: admin            Index: 1
Public Key:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDHJr+Mvd9FZSHBW6ZdqGdgtClYHGbK3FCek63SM7JIVzcZngkN0dHTXMnPt9blg2uHhfWj1mgdJWPWHprLfLx/Ql94fxz7wJ9Yn9u6Aq/bC06U4sGqpZFt871jddYOFfzsfKqHdyTtc+ZtPvgargi74J5I3tZ05+Vuep8IA1SMyRpduS1zRgrd2nJnDVhX6lObg/UR6s4BVl97WTWBdTdFli6RXQTKXjD0oswkNGUdY6EJCN/SvmpxRLpSaOwGKKK1g7Xh4hpiJKigIUH0srUQDL44zJkz+v2jaRBChXTJGC9d63/raqiRV4f2MJiJt1123RSgc1xmMlNI6SjHXSZIvQ1t1CzH+RpEGO2u9ljeNpLZJnLZc164J1N3hqtFyKcaMn/nYklTbSm9/Z2zSNGcJ+MLDcgApzjTy2FXyyuCvxQ41iF++/kTEJHPZ0YeKkaXNcYDUcni33k8xkJ6RoXVUdLI+Hv0Tbpmd8GbsJM6MGiMXnPU/7MkqheOrSYnHbM= coe-muc-rsa
Fingerprint:
SHA256:By9rCDYfDOuxn/tHHLA7O4xqRpzVSNP6hJ5okbL/YWk
Bubblebabble fingerprint:
xirez-nydes-ribyp-fodyh-poreh-lypyr-pagep-maryn-fesaz-temob-maxex
Comment:
-
2 entries were displayed.

fas2552::>