Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1699
  • Last Modified:

Cisco 831 vty ssh login

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
amerretz
Asked:
amerretz
  • 4
  • 4
1 Solution
 
mikebernhardtCommented:
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
 
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.

Thanks
0
 
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?

Thanks
0
Technology Partners: 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!

 
mikebernhardtCommented:
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
 
mikebernhardtCommented:
Also make sure that under the ssh authentication methods, that RSA and password are checked.
0
 
amerretzAuthor Commented:
I had a acl blocking vty 0 .......

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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now