Solved

Cisco 831 vty ssh login

Posted on 2006-11-28
8
1,678 Views
Last Modified: 2008-02-01
Hi,

Just trying to setup my vty 0 line to use ssh.

I have dont the following

Router#config terminal
Router(config)#hostname RouterOne
RouterOne(config)#ip domain-name mydomain.com
RouterOne(config)#crypto key generate rsa
The name for the keys will be: RouterOne
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose 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]
RouterOne(config)#ip ssh time-out 60
RouterOne(config)#ip ssh authentication-retries 2
RouterOne(config)#line vty 0 4
RouterOne(config-line)#transport input ssh
RouterOne(config-line)#^Z
RouterOne#


-----------------------------------------------

I have also setup usernames and passwords.

Now the problem I am having is connecting via SSH. I am using a application called SecureCRT and it has an option to connect via SSHv1.  I cannot seem to get it to connect?

0
Comment
Question by:amerretz
  • 4
  • 4
8 Comments
 
LVL 28

Expert Comment

by:mikebernhardt
Comment Utility
It should work fine with SSHV1. I use Secure CRT without a problem- but check the Secure CRT session configuration and verify that it's using port 22, not port 23. It seems to get confused and tries ssh on port 23 if you don't fix it.
0
 

Author Comment

by:amerretz
Comment Utility
When I try to telnet to my hostname it does not work.... I have to telnet to the IP address. Do you think this would have impact on connection? Why do you think I cant telnet or ping my routers hostname?

I have seen in tutorials that the hostname is used as opposed to the ip address and it works.

Thanks
0
 

Author Comment

by:amerretz
Comment Utility
How do I find out the rsa that the cisco router generated? Do I need to enter this key into the SecureCRT properties?

Can you tell me what settings you are using? Does the hostname use NETBIOS or does a host record need to be created through DNS?

Thanks
0
 
LVL 28

Accepted Solution

by:
mikebernhardt earned 250 total points
Comment Utility
If you're using the host name, you have to have a DNS record for the host name. Remember that your PC needs to know who that host is. NETBIOS is not used at all. The router can be called anything. However, this has no bearing on your problem. you can ssh to the IP address as easily as the IP address.

When you try to connect to the router the first time, it should ask you if you want to accept the key. there is nothing you need to manually with the key.

Again, make sure that your ssh session is using port 22, not port 23!
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 28

Expert Comment

by:mikebernhardt
Comment Utility
Also make sure that under the ssh authentication methods, that RSA and password are checked.
0
 

Author Comment

by:amerretz
Comment Utility
I had a acl blocking vty 0 .......

Thanks for your help, its working now.
0
 
LVL 28

Expert Comment

by:mikebernhardt
Comment Utility
Ahh, that would do it. I assumed that the config you posted was all there was for vty 0.
0
 

Author Comment

by:amerretz
Comment Utility
Yeah but I wasnt using CRT through a computer that only had console access. I am trying to harden the security on this router.

I have vty 1 4 disabled. Only allow vty 0 from 1 ip address. It wouldve helped if I was trying this all from that address.....hehehehe sorry
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article is a guide to configure bridging on Cisco Routers.  This is something I never knew was possible until after making a few phone calls to Cisco.  Using bridging saved our company money by not requiring us to purchase a new switch.  Bridgi…
The Cisco RV042 router is a popular small network interfacing device that is often used as an internet gateway. Network administrators need to get at the management interface to make settings, change passwords, etc. This access is generally done usi…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now