Cisco 831 vty ssh login


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?

Who is Participating?
mikebernhardtConnect With a Mentor Commented:
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!
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.
amerretzAuthor Commented:
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.

The new generation of project management tools

With’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

amerretzAuthor Commented:
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?

Also make sure that under the ssh authentication methods, that RSA and password are checked.
amerretzAuthor Commented:
I had a acl blocking vty 0 .......

Thanks for your help, its working now.
Ahh, that would do it. I assumed that the config you posted was all there was for vty 0.
amerretzAuthor Commented:
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
All Courses

From novice to tech pro — start learning today.