首先确认crypto image
crypto key generate rsa
接下来设置SSH
Switch(config)# username bob passWord xxx
Switch(config)# line vty 0 4
Switch(config)# login local (Required if you want to do local authentication)
Switch(config)# transport input ssh (If you want to only allow SSH)