Wednesday, June 10, 2009

Enabling ssh on a cisco 870

So, after setting up everything over the console cable, I finally want to be able to hook it up to my network and store it away in a nice corner and never physically touch it again. The solution is of course, ssh.

For the last time, via console:

en
show ip ssh %SSH has not been enabled
conf t
ip domain-name router.bk
crypto key generate rsa
How many bits in the modulus [512]: 1024
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
Jun 4 13:12:07.239: %SSH-5-ENABLED: SSH 1.99 has been enabled
end
show ip ssh
SSH Enabled - version 1.99
Authentication timeout: 120 secs; Authentication retries: 3

Now I'm going to set up a user for access. I'm going to call him "sdm" as I guess I'll be using something like that anyways soon enough:

conf t
username sdm privilege 15 secret 0 sdmpass
line vty 0 4
privilege level 15
login local
transport input ssh
exit
end

Now time to fire up ssh and try to connect! If not, check show ip ssh again, also see if you can telnet to port 22 on the device. No more console for me, yay!

As always, at the end:

wr mem
copy running-config startup-config

No comments:

Post a Comment