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.

Ads Blocker Image Powered by Code Help Pro

🙏🙏A Humble Request to Disable AdBlock 🙏🙏

You can close this message & continue reading but...
❤️❤️❤️ Please consider visiting one of my sponsors first ❤️❤️❤️

DigitalOcean 🚀

Sign up and get a $200, 60-day credit to try DO.
Spend $25 after your credit expires and I will also get $25 in credit!
DigitalOcean Referral Badge

Pictory 🤖

Create amazing videos using Pictorys AI powered software.
Its FREE to create your first 3 video projects

Hi Reader, I noticed that you are using an ad blocker while visiting my website. While I completely understand that excessive ads can hinder your browsing experience, ad revenue helps pay for the cost associated with operating this website. is a labor of love, created with the primary aim to provide you with quality content, free of cost. It’s a space where I share information, ideas, and insights that I hope have a meaningful impact. However, maintaining and updating this platform incurs substantial costs.