Snippet: NetApp SSH Keys for passwordless auth.

It really pisses me off when I have to type passwords over and over and over again.  Even more so when I am trying to do a ton of work or do a deployment and I need to do it.

It’s even more annoying when a customer won’t enable proper access to their systems, or they use root forever with weak passwords.

Enter the SSH KEYs.

If you never worked with them, they are super handy, and can be used on any unix type platform.  Basically, they let you ssh to a host, and there is a public (which is put on the server)/private key (which you keep) comparison to verify if you are you.

As admins, you should know about this already.  Seriously.  Why don’t you?

You go through a few steps. First, on your host you generate a private/public key pair. You then put your public key on the remote device (unix server, san, network switch or router, etc)  (If you need to generate keys on windows, use puttygen)

KEY GENERATION ON OSX OR LINUX:

* ADDING SSH KEY FOR ROOT ACCOUNT ONTAP 7-Mode

 

* ADDING SSH KEY FOR ROOT ACCOUNT ONTAP: CLUSTER MODE
With cluster mode, you are basically adding this to the admin account. You can either scp a file to /mroot, or you can have it download your file with a URI (HTTP). You can also paste it in.

Either way you pick, you typically will need to ssh to the host once just to get your ssh client to save you host keys of the destination. After that you are able to log in passwordless with ssh key authentication!

p.s.  if you still use TELNET anywhere (read this HP ProCurve users), you should be punched in the throat… just sayin’.

Special bonus: Cisco Nexus NX-OS SSH Key addition:

Adding a key to a nexus is super simple!
username foooooo sshkey yourkeyhere

 

[asa]1449332315[/asa]

[asa]1593273894[/asa]

Be Sociable, Share!

, ,

Comments are closed.