Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

Testing SSH - Configuring a test router

Sep 8, 2013 7:54PM PDT

Hello all,

I was given a project at work to implement SSH on all of our routers and switches. We have branches all over the world so it's approximately 50 or so of both routers and switches. I'm referring to several websites on how to implement SSH (as well as CBT nuggets), but the problem is, I'm having a bit of difficulty putting an IP address on a router. Yes, I'm having trouble with that!

My test router is an 871. Do I put an IP address on vlan1? I'm also not sure what IP address (or if I can just put a random private IP address) to put on it. My work computer's ip info is:

IPv4 address: 10.1.250.130
Subnet: 255.255.252.0
Gateway: 10.1.248.1

The above may not be important, since the router's FE0 port is connected to a 48 port switch I have connected to another port in my office.

Any help is appreciated!

Discussion is locked

- Collapse -
Answer
For this one, we talk to Cisco.
Sep 9, 2013 12:08AM PDT
- Collapse -
Answer
configuring a test router with ssh
Sep 11, 2013 4:28AM PDT

1. Specify the Host name.

block quote
Router(config)#hostname <host name>
block quote end
2. Define a default domain name.

block quote
Router(config)#ip domain-name <Domain Name>
block quote end
3. Generate RSA key pairs.

block quote
Router(config)#crypto key generate rsa
block quote end
4. Configure SSH-RSA keys for user and server authentication.

block quote
Router(config)#ip ssh pubkey-chain
block quote end
5. Configure the SSH username.

block quote
Router(conf-ssh-pubkey)#username <user name>
block quote end
6. Specify the RSA public key of the remote peer.

block quote
Router(conf-ssh-pubkey-user)#key-string
block quote end
7. Specify the SSH key type and version. (optional)

block quote
Router(conf-ssh-pubkey-data)#key-hash ssh-rsa <key ID>
block quote end
8. Exit the current mode and return to privileged EXEC mode.

block quote
Router(conf-ssh-pubkey-data)#end
block quote