Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configuring SSH on my 1605 Router

Status
Not open for further replies.

SQL2KDBA69

Programmer
Feb 4, 2004
227
US
Im current using telnet but want to use SSH?

can someone please give me a walk thru on how to conf this from start to finish. thanks in advance
 
You will need either the IP PLUS IPSEC 56, the IP/FW PLUS IPSEC 56 or the IP/IPX/AT/IBM/FW PLUS IPSEC 56 feature set on this platform tp enable SSH as it requires a 'crypto' license. Once the software is installed you need to create your public keys, for this you must have configured a hostname and an ip domain-name:

router(config)# hostname cisco-1605r
cisco-1605r(config)# ip domain-name router.com
cisco-1605r(config)# crypto key generate rsa modulus 1024
The name for the keys will be: cisco-1605r.router.com

% The key modulus size is 1024 bits
Generating RSA keys ...
[OK]

Once that keys have been generated you can now use SSH to connect to your router. To restrict connections to SSH only (so effectively disabling telnet) you must configure the TTY lines accordingly:

cisco-1605r(config)# line vty 0 4
cisco-1605r(config-line)# transport input ssh


HTH

Andy
 
here is my image file :

c1600-bk8nor2sy-mz.122-31.bin

can i do it with this?
 
That image file is the IP/IPX/AT/IBM/FW PLUS IPSEC 56 image so should work in theory..... I have just checked on the Feature Navigator on CCO though and this tells me you need the 12.2T train of software for SSH.

I would try the commands I posted to see if they are accepted on your IOS version, if not you will need to update to either a 12.2T train or 12.3.

HTH

Andy
 
i dont see the modulus command.

here is what i get:

R1605(config)#crypto key generate rsa ?
usage-keys Generate seperate RSA keys for signing and encryption
<cr>
 
OK, that will still work. The commands are slightly different depending on the IOS version:

router(config)#crypto key generate rsa usage-keys modulus 1024

You can't break anything so try it and see.....

HTH

Andy
 
This is what i get :

R1605(config)#crypto key generate rsa usage-keys ?
<cr>

R1605(config)#crypto key generate rsa usage-keys modulus 1024
^
% Invalid input detected at '^' marker.



 
What happens when you just press return after the 1st command you list?

Andy
 
this is what happened :

R1605(config)#crypto key generate rsa usage-keys
The name for the keys will be: R1605.losaca.adelphia.net
Choose the size of the key modulus in the range of 360 to 2048 for your
Signature Keys. Choosing a key modulus greater than 512 may take
a few minutes.

How many bits in the modulus [512]: 1024
Generating RSA keys ...
[OK]
Choose the size of the key modulus in the range of 360 to 2048 for your
Encryption Keys. Choosing a key modulus greater than 512 may take
a few minutes.

How many bits in the modulus [512]: 1024
Generating RSA keys ...
[OK]
 
Once that keys have been generated you can now use SSH to connect to your router. To restrict connections to SSH only (so effectively disabling telnet) you must configure the TTY lines accordingly:

cisco-1605r(config)# line vty 0 4
cisco-1605r(config-line)# transport input ssh

I would test it first though with a SSH client (I use PuTTY) before disabling telnet.

Andy
 
I tried putty and get an error " Network Error : Connection Refused" but it works fine with telnet and i have the tranport input set to all.
 
It might be that SSH terminal support requires 12.2T or 12.3 - can you download a 12.2T or 12.3 release and try that?

Andy
 
No, but you should be able to contact your supplier who should provide it for free or a nominal administrative charge since you aren't changing feature set.

Andy
 
I got it working with putty now. thanks for the help everybody. now i need to work on my 1924 switch i just got.
 
No chance on the 1924 unfortunately..... There is no crypto code for this switch (nor ever will be) even though it runs IOS. The minimum you would need is a 2950G (it must be a 'G' version so it can support the EI features).

Andy
 
no im not doing ssh on my switch. that just the next peice of hardware i have to configure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top