المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ssh اعدادت



الفارس المتعلم
04-07-2011, 00:24
السلام عليكم ورحمة الله وبركاتة

اخواني اريد اعدادت لبرتوكول ssh مع الشرح انا عارف انه مهمتة نفس الtelnet ولكن مشفرة . ابغى الاعدات مع الشرح يعافيكم ربي

الفارس المتعلم
05-07-2011, 00:25
اخواني وجدت الاعدات ومشروحه كمان وهذي للفايدة

SSH Configuration Facts
SSH (Secure Shell) is a secure and acceptable alternative to Telnet. SSH uses RSA public key cryptography for both connection and authentication. Use the following commands to configure SSH on a VTY line.


Use . . .

To . . .




router_name(config)#crypto key generate rsa
Generate a matched public and private key pair, as well as a shared encryption key. To generate the key pair, the device must have both a hostname (other than Router) and an ip domain-name configured.




router_name(config)#aaa new-model
router_name(config)#username <value> password <value>
Enable advanced security features for authentication and configure a local username and password that will be used for SSH authentication.




router_name(config-line)#transport input ssh
router_name(config-line)#transport input telnet
router_name(config-line)#transport input telnet ssh
Tell the device which type of connections to allow. Use the telnet or ssh keyword to identify the type of allowed access. Use both keywords to accept both access types.



Example
The following commands configure SSH to accept a username of admin with a password of cisco, allowing only SSH on lines VTY 0-4:

RouterA#config t
RouterA(config)#ip domain-name westsim.com
RouterA(config)#crypto key generate rsa
RouterA(config)#aaa new-model
RouterA(config)#username admin password cisco
RouterA(config)#line vty 0 4
RouterA(config-line)#transport input ssh