SSH v2 IOS/ XE:
note: for ssh on XE and ios we need atleast 2 user accounts on local router to successfully perform SSH
| SSH steps: |
| 1) complete basic settings like hostname, domain-name, username and password |
| 2) configure line vty lines |
| 3} configure crypto rsa |
| hostname CE19 |
| ! |
| ! |
| enable password cisco |
| ! |
| ! |
| ip domain name DN.com |
| ! |
| crypto key generate rsa |
| ! |
| username admin password 0 admin |
| username omkar privilege 15 password 0 omkar |
| ! |
| line vty 0 4 |
| login local |
| transport input ssh |
XR
| Under privileged mode: |
| crypto key generate rsa |
| Under global config mode: |
| hostname PE1 |
| ! |
| ipv4 access-list SSH_ALLOWED |
| 10 permit ipv4 10.0.0.0/24 any |
| ! |
| domain name DN.com |
| ! |
| ssh server v2 |
| ssh server vrf default ipv4 access-list SSH_ALLOWED |
| ssh timeout 120 |