SSH

Configuration (The IOS needs to support SSH!)

//Set Hostname;
(config)#hostname NAME

//Domain name
(config)#ip domain-name DOMAIN

//Set Users
(config)#username USER secret PASS
(config)#line vty 0 15
(config-line)#login local

//Activate SSH Server
(config)#crypto key generate rsa

//Allow on VTY only SSH, not Telnet
(config-line)#transport input ssh

Control VTY access with ACL

R1(config)#line vty 0 4
R1(config-line)#login local
R1(config-line)#transport input ssh
R1(config-line)#access-class 10 in
R1(config)#access-list 10 permit 192.168.1.0 0.0.0.255

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s