How to disable & block SSH access to a MikroTik Router

How to disable & block SSH access to a MikroTik Router

In this article, we will look at several ways to limit or block SSH access to a MikroTik RouterOS device.

How to disable the SSH service

  1. Launch Winbox and connect to the router
  2. Click IP | Services
  3. Right click on the ssh service and choose Disable
    Disable SSH Service

CLI Command to disable SSH service

/ip service disable ssh

How to limit access to SSH from specific IP hosts or networks

/ip service set ssh address=,

Firewall rule to block all SSH traffic to the router

/ip firewall add action=drop chain=input dst-port=22 protocol=tcp

I hope you found this MikroTik Tutorial about SSH useful. If it helped you out, please leave a comment below and checkout my other MikroTik Tutorials!

NetScout LinkRunner G2

LinkRunner G2 is the ultimate network cable test tool

CAT5 Cable Tester, Measure Cable Length,
PoE Voltage, Network Connectivity, Switch Port ID
Optional Wireless & Fiber Optics Modules
Check Price on Amazon

One Reply to “How to disable & block SSH access to a MikroTik Router”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.