Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[7.0.1] I keep finding SSHD enabled after I've disabled it.

Featured Replies

tower-diagnostics-20250310-2038.zip

 

I have disabled SSH from settings > ssh, by stopping it and setting Enable SSH Service to "No". Looking though my logs for different things and I keep seeing it listening on port 22 and I have not enabled it myself. When I go to settings > ssh, it is indeed running and I stop it. How can I pin down what is starting it? Can dockers turn on my SSH service somehow? Is SSH service automatically enabled after a reboot even if I've specifically set it to disabled? port 22 is not open to the internet but I'd still feel safer if ssh was not running when I don't need it to be.

Solved by bmartino1

  • Community Expert
  • Solution

you can run a user script plugin to kill the service at start of the array.

Yes, some dockers like sftp docker run ssh and may use ssh for inner docker communication and process. (my syss log show this then stoped then shown agan due to sftp docker instance...)


Yes, some plugins like ssh plugin and unriad connect may enable the service for secure communication.

At boot Unraid v7 has a instance of testing and checkin sshd and will temp start then check ssh option and disable the service.

user script to kill:

 

#!/bin/bash
# User Script to Kill and Disable SSH in Unraid (Slackware-based)

echo "Stopping all SSH connections..."

# Kill all active SSH processes
pkill -9 sshd
pkill -9 ssh

echo "Disabling SSH service..."

# Remove execute permissions to prevent SSH from starting
chmod -x /etc/rc.d/rc.sshd

# Ensure SSH is disabled on boot
if [[ -f /boot/config/go ]]; then
    sed -i '/rc.sshd/d' /boot/config/go
fi

echo "SSH has been disabled. To re-enable, manually restore permissions to /etc/rc.d/rc.sshd"

Run once and it will kill any and all ssh. this will also add data to your go file to disable the service at boot.

Edited by bmartino1
run once script

  • Author

I see. Thank you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.