Home > OS >  "unknown operation ssh" while checking status of ssh service
"unknown operation ssh" while checking status of ssh service

Time:02-01

I'm trying to start SSH service on my virtual linux machine.

But getting "unknown operation" error while I'm trying to check service status

sudo service start ssh

sudo systemctl ssh status

"unknown operation ssh"

CodePudding user response:

Your command arguments are in the wrong order in both cases, I think you inverted the CLI usage

With the service CLI you would get :

sudo service ssh status

And with systemctl :

sudo systemctl status ssh

The usage is described like this from systemctl manpage :

systemctl [OPTIONS...] COMMAND [NAME...]

Your command here is status and the name of the service is ssh

  •  Tags:  
  • Related