Monday, 13 January 2014

ssh configuration for c-mode NetApp


ssh configuration for c-mode NetApp

If ssh keys exists, no need to create a new one. If not, you need to create a key.
  1. Create the user with a public key authentication method.
    netapp::> security login create -username monitor -application ssh -authmethod publickey -profile admin
  2. Copy the public key contents of the id_rsa.pub and place it between quotes in the security login publickey create command. (take caution not to add carriage returns or other data that modifies the keystring, leave it in one line)
    netapp::> security login publickey create -username monitor -index 1 -publickey "ssh-rsa
    AAAAB3NzaC1yc2EAAAABIwAAAQEA5s4vVbwEO1sOsq7r64V5KYBRXBDb2I5mtGmt0+3p1jjPJrXx4/
    IPHFLalXAQkG7LhV5Dyc5jyQiGKVawBYwxxSZ3GqXJNv1aORZHJEuCd0zvSTBGGZ09vra5uCfxkpz8nwaTeiAT232LS2lZ6RJ4dsCz+
    GAj2eidpPYMldi2z6RVoxpZ5Zq68MvNzz8b15BS9T7bvdHkC2OpXFXu2jndhgGxPHvfO2zGwgYv4wwv2nQw4tuqMp8e+
    z0YP73Jg0T3jV8NYraXO951Rr5/9ZT8KPUqLEgPZxiSNkLnPC5dnmfTyswlofPGud+qmciYYr+cUZIvcFaYRG+Z6DM/HInX7w==  monitor@eeadmin"
    Alternatively, you can use the load-from-uri function to bring the public key from another source.
    netapp::> security login publickey load-from-uri -username monitor -uri http://bjacobs-lnx/id_rsa.pubVerify creation.
  3. netapp::> security login publickey show -username monitor
    UserName: monitor Index: 1
    Public Key:
    ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5s4vVbwEO1sOsq7r64V5KYBRXBDb2I5mtGmt0+3p1jjPJrXx4/
    IPHFLalXAQkG7LhV5Dyc5jyQiGKVawBYwxxSZ3GqXJNv1aORZHJEuCd0zvSTBGGZ09vra5uCfxkpz8nwaTeiAT232LS2lZ6RJ4dsCz+
    GAj2eidpPYMldi2z6RVoxpZ5Zq68MvNzz8b15BS9T7bvdHkC2OpXFXu2jndhgGxPHvfO2zGwgYv4wwv2nQw4tuqMp8e+
    z0YP73Jg0T3jV8NYraXO951Rr5/9ZT8KPUqLEgPZxiSNkLnPC5dnmfTyswlofPGud+qmciYYr+cUZIvcFaYRG+Z6DM/HInX7w== monitor@eeadmin
    Fingerprint:
    fd:cf:9e:06:50:4d:8c:19:5a:c6:36:0f:0f:9b:ef:bb
    Bubblebabble fingerprint:
    xunep-misif-magug-maryp-hikig-hycun-hisob-mymim-riryv-ryvam-toxox
    Comment:
  4. Test access from the host.
    monitor@eeadmin:~$ ssh 10.61.64.150
    The authenticity of host '10.61.64.150 (10.61.64.150)' can't be established.
    DSA key fingerprint is d9:15:cf:4b:d1:7b:a9:67:4d:b0:a9:20:e4:fa:f4:69.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '10.61.64.150' (DSA) to the list of known hosts.
    netapp::>

3 comments:

  1. Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updatingHadoop Admin Online Training Bangalore

    ReplyDelete
  2. Log in to the NetApp cluster via the Command Line Interface. Use the command security key gen -t rsa to generate RSA keys. Why Bad Games Specify the key size (e.g., -s 2048 for a 2048-bit key).

    ReplyDelete

Featured post

Netapp monitoring solution from scratch

I created a netapp monitoring solution on a UNIX machine... and have uploaded the static files to a free php server for so that you under...