Cisco 831 vty ssh login

Posted on 2006-11-28
Last Modified: 2008-02-01

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
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 ...
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


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?

Question by:amerretz
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
LVL 28

Expert Comment

ID: 18038805
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.

Author Comment

ID: 18040421
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.


Author Comment

ID: 18040588
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?

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

LVL 28

Accepted Solution

mikebernhardt earned 250 total points
ID: 18041733
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!
LVL 28

Expert Comment

ID: 18041749
Also make sure that under the ssh authentication methods, that RSA and password are checked.

Author Comment

ID: 18041928
I had a acl blocking vty 0 .......

Thanks for your help, its working now.
LVL 28

Expert Comment

ID: 18042027
Ahh, that would do it. I assumed that the config you posted was all there was for vty 0.

Author Comment

ID: 18042100
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

New Server  was moved from behind Router R2 f0/1 to behind router R1 int f/01 and has now address But we want users still to be able to connected to it by old IP. How to do it ? We can used destination NAT (DNAT).  In DNAT…
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
After creating this article (, 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 (, 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…

752 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