Router(config)#hostname 2. 定義預設網域名稱。 Router(config)#ip domain-name 3. 產生 RSA 金鑰配對。 Router(config)#crypto key generate rsa 4. 為使用者和伺服器驗證設定 SSH-RSA 金鑰。 Router(config)#ip ssh pubkey-chain 5. 設定 SSH 使用者名稱。 Router(conf-ssh-pubkey)#username 6. 指定...
Router(config)#host Server Server(config)#ip domain name cisco.com ②生成RSA秘钥 当生成rsa秘钥后ssh服务会自动开启,反之会自动关闭,要删除 RSA 密钥对,请使用 crypto key zeroize rsa 全局配置模式命令。删除 RSA 密钥对之后,SSH 服务器将自动禁用 复制代码 Server(config)#crypto key generate rsa The nam...
101(config)#crypto isakmp enable101(config)#crypto isakmp identity hostname101(config)#crypto isakmp policy 1101(config-isakmp)#authentication rsa-encr101(config)#access-list 101 permit gre host 20.1.1.1 host 20.1.1.2101(config)#crypto ipsec transform-set test esp-des esp-sha-hmac101...
Router(config)#host Server Server(config)#ip domain name test.com ②生成RSA秘钥 当生成rsa秘钥后ssh服务会自动开启,反之会自动关闭 要删除 RSA 密钥对,请使用 crypto key zeroize rsa 全局配置模式命令。删除 RSA 密钥对之后,SSH 服务器将自动禁用 Server(config)#crypto key generate rsa The name for the...
ra(config)#crypto key generate rsa general-keys modulus 1024 //生成一个rsa算法的密钥,密钥为1024位 (提示:在Cisoc中rsa支持360-2048位,该算法的原理是:主机将自己的公用密钥分发给相关的客户机,客户机在访问主机时则使用该主机的公开密钥来加密数据,主机则使用自己的私有的密钥来解密数据,从而实现主机密钥认证...
WEB_Server(config)#crypto key generate rsa general-keys modulus 1024 ! WEB_Server(config)#username WEB_USER privilege 15 password 0 cisco ! WEB_Server(config)#ip http server WEB_Server(config)#ip http authentication local WEB_Server(config)#ip http secure-server ...
crypto key generate rsa modulus 2048 执行结果: The name for the keys will be: 6509-mize.myrice.com % The key modulus size is 2048 bits Generating RSA keys ... [OK] f)指定可以用SSH登录系统的主机的源IP地址 access-list 90 remark Hosts allowed to SSH in //低版本可能不支持remark关键字 ...
(2)生成RSA秘钥对 R2(config)#crypto key generate rsa The name for the keys will be: R2.cisco 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 ...
IOS Keys in SECSH format(ssh-rsa, base64 encoded): NONEat-lte-agent-53#config tEnter configuration commands, one per line. End with CNTL/Z.at-lte-agent-53(config)#crypto key generate rsa modulus 4096The name for the keys will be: at-lte-agent-53.xxxx.com% The key modulus size is...
router#config terminal router(config)#ip domain-name cisco.cn router(config)#crypto key generate rsa router(config)#aaa new-model router(config)#username cisco password cisco@123 router(config)#ip ssh time-out 30 router(config)#ip ssh authentication-retries 1 router(config)#line vty 0 4 ...