# How to configure SSH on Cisco IOS

**URL:** https://forum.networklessons.com/t/how-to-configure-ssh-on-cisco-ios/1349
**Category:** Lessons Discussion
**Created:** [December 29, 2016, 9:28pm UTC](https://forum.networklessons.com/t/how-to-configure-ssh-on-cisco-ios/1349 "2016-12-29T21:28:37Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [October 4, 2016, 4:28pm UTC](https://forum.networklessons.com/t/how-to-configure-ssh-on-cisco-ios/1349/5 "2016-10-04T16:28:26Z")

</div>

Hello Matt!

The way that you implement your configuration achieves something similar, but not exactly the same as that which Rene has done in his example.

Rene’s example applies SSH on the VTY line. This means that you can connect to the device via SSH from **any** of its interfaces to the VTY connections. In your configuration, you are binding the ssh configuration only to the management interface. This of course is a legitamite configuration assuming you only apply out of band management, and if it works for you that’s great.

Also, in your configuration the `ip http secure-server` is not necessary for the ssh portion of the connectivity that you provide as this allows HTTPS, that is, port 443.

As for a command that allows you to view the crypto key, take a look at these two commands:

`show crypto key mypubkey rsa`  
and  
`show crypto key pubkey-chain rsa`

You can learn more about them at this Cisco CLI reference guide:  
[http://www.cisco.com/en/US/products/ps6017/products\_command\_reference\_chapter09186a00808ab5a9.html#wp1010372](http://www.cisco.com/en/US/products/ps6017/products_command_reference_chapter09186a00808ab5a9.html#wp1010372)  
[http://www.cisco.com/en/US/products/ps6017/products\_command\_reference\_chapter09186a00808ab5a9.html#wp1010509](http://www.cisco.com/en/US/products/ps6017/products_command_reference_chapter09186a00808ab5a9.html#wp1010509)

I hope this has been helpful!

Laz

---

_[View the full topic](https://forum.networklessons.com/t/how-to-configure-ssh-on-cisco-ios/1349)._
