SSHD Continuously Running?

Snort McDork

Active Member
Joined
Apr 4, 2020
Messages
159
Reaction score
59
Credits
1,504
On the front panel of this machine, is the indicator light that tells me the HD is performing something. Normally, it is not that active. But all day today, I've noticed it running non-stop. I've done a re-start twice now, and it it is still going. It kinda worries me. I first thought I was getting updates installed, but there is nothing indicating what task it is doing. Does any one have any idea what this might be? This is the first time this has happened.
 

Attachments

  • 0.00 0.0-0 nice hat-02-19-49.jpg
    0.00 0.0-0 nice hat-02-19-49.jpg
    37.8 KB · Views: 16


On the front panel of this machine, is the indicator light that tells me the HD is performing something. Normally, it is not that active. But all day today, I've noticed it running non-stop. I've done a re-start twice now, and it it is still going. It kinda worries me. I first thought I was getting updates installed, but there is nothing indicating what task it is doing. Does any one have any idea what this might be? This is the first time this has happened.
There are numerous programs to enable the user to see what is happening on the machine. A common one is htop in a terminal. One can open a terminal, preferably one which occupies a large part of the screen so all the output fits and can be viewed, and run: htop.

The display will show, by default at the top of the screen, the activity of each cpu core, memory usage and total, and swap usage. In the columns under the titlebar, are shown the processes that are using the machine. It updates every few seconds so as processes come and go, they show up for the user who is viewing the output.

In particular, what may be of interest are the processes that are consuming memory and the cpu. With a mouse click on "CPU%" or "MEM%", the columns of either of those features will list what's using them, shown from greatest users down. The "Command" column shows the processes. For help with manipulating the output, press F1 to see the commands that alter htop itself.

Another program that provides similar information is top. And a further one is glances which has a different presentation of similar but also other information.

If the issue is networking, one can watch what's happening on the network with the programs: vnstat, or as root, iftop or nethogs. There's some learning involved for using each of these programs to get the best out of them and understand the outputs. There are many other network monitors too. Linux has an abundance of such tools all with slightly difference nuances and with more or less information in the outputs.

To view what the machine is listening for, one can run: ss -tulpen which shows the ports on the systems used for listening, for example if ssh service is listening for inputs. If the ssh daemon is running, one can check it in the htop output by clicking on the search function in htop at the bottom of the page, entering "ssh" and htop will show the stats for it by highlighting the relevant line. If nothing is currently connecting by ssh, then usually there is no cpu or memory usage.
 
Last edited:
Thanks for the feedback and responding.About 2 hours ago it stopped running, and is now performing normally. It kinda freaked me out because I thought maybe there was a program running I was not aware of. Then I thought, or asked myself if it was doing some defrag operation. And this is a 1tb drive. That's honestly what I thought it was doing. I will make note of these for future reference. I'm hoping I can get my neighbors brother to stop by-as she claims he may know this OS. So fingers crossed for that one.
 
Thanks for the feedback and responding.About 2 hours ago it stopped running, and is now performing normally. It kinda freaked me out because I thought maybe there was a program running I was not aware of. Then I thought, or asked myself if it was doing some defrag operation. And this is a 1tb drive. That's honestly what I thought it was doing. I will make note of these for future reference. I'm hoping I can get my neighbors brother to stop by-as she claims he may know this OS. So fingers crossed for that one.
Why you have not run htop program as instructed?
 
Excuse me. But if you cannot ask a question in a more diplomatic manner, it's best to not ask it at all.
I'm highly offended by your tone.
He was referring to @osprey's reply, nothing more. We don't do tone policing and not everyone's first language is English. Thanks for understanding.

On most distributions sshd is only running if you either installed it or enabled it.
Code:
systemctl status sshd
Not sure how sshd has to with your HD spinning constantly, spinning usually happens when reading or writing is done.

If it's running you can run the following to stop and disable it.
Code:
systemctl disable sshd --now
 
Last edited:
He was referring to @osprey's reply, nothing more. We don't do tone policing and not everyone's first language is English. Thanks for understanding.

On most distributions sshd is only running if you either installed it or enabled it.
Code:
systemctl status sshd
Not sure how sshd has to with your HD spinning constantly, spinning usually happens when reading or writing is done.

If it's running you can run the following to stop and disable it.
Code:
systemctl disable sshd --now
I didn't mean to say it was spinning like a regular HD. What I was concerned about was it was clearly performing some thing for over several hours. Indicator light on panel indicated that. I was concerned because I've never seen it do this before. It was just unusual to me. And while I'm here, let me just say I responded the way I did because I was (I believe) given some instructions/feedback on how to investigate this situation through "Terminal". I am not good with terminal. There are things I don't understand which kinda requires I hope a friend (who is 2 hours from me) is in my area so I can catch him for a few to explain what something means. And unfortunately, his wife just had another baby, so I'm not likely going to see him for the foreseeable future-at least this Summer. I try to understand terminal, but I get frustrated very easily. So I give up.
 
Last edited:
I didn't mean to say it was spinning like a regular HD. What I was concerned about was it was clearly performing some thing for over several hours. Indicator light on panel indicated that. I was concerned because I've never seen it do this before. It was just unusual to me.
Are you still seeing the light indicator going on and off of your HD?

Have you tried what I mentioned since you were talking about sshd?
On most distributions sshd is only running if you either installed it or enabled it.
systemctl status sshdNot sure how sshd has to with your HD spinning constantly, spinning usually happens when reading or writing is done.

If it's running you can run the following to stop and disable it.
systemctl disable sshd --now
And while I'm here, let me just say I responded the way I did because I was (I believe) given some instructions/feedback on how to investigate this situation through "Terminal". I am not good with terminal.
@osprey did take the time to write you a very detailed response to help you investigate this, it sounds kind of ungrateful if you brush it off by not using that with "because I'm not going good with the terminal". You are never too old to learn.
 


Follow Linux.org

Staff online

Members online


Top