Cisco Cisco MDS 9000 SAN-OS Software Release 1.0 Technisches Handbuch

Seite von 2
Contents
Introduction
Prerequisites
Configure
Verify
Introduction
This document describes how to ssh into Cisco Multilayer Data Switch (MDS) 9000 or Nexus
Series switches without  being prompted for a Secure Shell (SSH) user password. 
We can use ssh with key-based authentication and run commands so that there are no password
prompts.
switch# ssh username@switch command
Prerequisites
Need a current version of ssh, in this example, the ssh version on a Linux server is as follows:
ssh -v
OpenSSH_5.0p1-hpn13v1
, OpenSSL 0.9.8d 28 Sep 2006
The information in this document was created from the devices in a specific lab environment. All of
the devices   used in this document started with a cleared (default) configuration. If your network is
live, make sure that you   understand the potential impact of any command
.
Configure
To enable this feature please perform following steps:
Step 1. SSH needs to be enabled on the MDS/Nexus switch
#conf
(config)#feature ssh
Step 2. You need to get the public key off the host and configure it on the MDS/Nexus switch
Options:
-v : Verbose Enabled
-b: Number of Bits for the key
-t: Type of Algorithm either DSA or RSA
ssh-keygen -v -b 1024 -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/users/thteoh/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again: