1. Router(config)# hostname MyRouter
  2. Router(config)# ip domain-name example.com
  3. Router(config)# crypto key generate rsa
  4. Router(config)# line vty 0 4
  5. Router(config-line)# transport input ssh
  6. Router(config-line)# exit
  7. Router(config)# ip ssh version 2
  8. Router(config)# username admin password adminpass
  9. Router(config)# aaa new-model
  10. conf t
  11. ntp server <IP server>
  12. ntp peer <IP server>