澄清在Cisco IOS上设置SSHterminal访问

我正在尝试在Cisco 2811上设置SSH并遇到一些困难。

第一步要运行crypto key generate rsa

我似乎错过了这个:

 better#crypto key generate rsa ^ % Invalid input detected at '^' marker. better# 

此外,我在crypto key命名空间中唯一可用的命令是lockunlock ,这似乎表明一个locking的密钥对(我不知道密码):

 better#crypto key ? lock Lock a keypair. unlock Unlock a keypair. better#crypto key unlock ? rsa RSA keys better#crypto key unlock rsa %% Please enter the passphrase: %% Unlocking failed. . better# 

或多或less,我问这究竟是什么意思,如果我真的有证书已经在这里(使用路由器)? 否则,我该如何解决这个问题? 这是我第一次configuration这个function,但我绝对相信这是我的IOS的一部分。

说到我的IOS,我正在运行镜像c2800nm-advsecurityk9-mz.124-24.T6.bin

我也会注意到我有我的hostnameip domain-nameconfiguration。 我也会给你一个dir flash:下面是如果它是在所有使用:

 better#dir flash: Directory of flash:/ 2 -rw- 2748 Jul 27 2009 14:03:52 +00:00 sdmconfig-2811.cfg 3 -rw- 931840 Jul 27 2009 14:04:10 +00:00 es.tar 4 -rw- 1505280 Jul 27 2009 14:04:32 +00:00 common.tar 5 -rw- 1038 Jul 27 2009 14:04:46 +00:00 home.shtml 6 -rw- 112640 Jul 27 2009 14:05:00 +00:00 home.tar 7 -rw- 1697952 Jul 27 2009 14:05:26 +00:00 securedesktop-ios-3.1.1.45-k9.pkg 8 -rw- 415956 Jul 27 2009 14:05:46 +00:00 sslclient-win-1.1.4.176.pkg 9 -rw- 38732900 Dec 8 2011 06:28:56 +00:00 c2800nm-advsecurityk9-mz.124-24.T6.bin 64016384 bytes total (20598784 bytes free) better# 

傻我,处于错误的模式:

 better(config)#crypto key generate rsa The name for the keys will be: better.malesky.org Choose the size of the key modulus in the range of 360 to 2048 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes. How many bits in the modulus [512]: % Generating 512 bit RSA keys, keys will be non-exportable...[OK] better(config)#