SSH Service Status

9,570

To see more output (info) you could tail the syslog directly when you restart the ssh service like this:

sudo service ssh restart; tail -f /var/log/syslog

If the ssh service is not OK then you'll see something like this with exit codes, status etc:

Jun  2 10:57:03 xfce systemd[1]: ssh.service: main process exited, code=exited, status=255/n/a
Jun  2 10:57:03 xfce systemd[1]: Unit ssh.service entered failed state.
Jun  2 10:57:03 xfce systemd[1]: ssh.service failed.
Jun  2 10:57:03 xfce systemd[1]: ssh.service holdoff time over, scheduling restart.
Jun  2 10:57:03 xfce systemd[1]: start request repeated too quickly for ssh.service
Jun  2 10:57:03 xfce systemd[1]: Failed to start OpenBSD Secure Shell server.

But if it is OK then:

Jun  2 10:57:31 xfce systemd[1]: Started OpenBSD Secure Shell server.
Jun  2 10:57:31 xfce systemd[1]: Starting OpenBSD Secure Shell server...
Share:
9,570

Related videos on Youtube

EamonnMcElroy
Author by

EamonnMcElroy

Updated on September 18, 2022

Comments

  • EamonnMcElroy
    EamonnMcElroy over 1 year

    I am checking the status of the SSH service by typing;

    sudo service ssh status
    

    I got the following output;

    ssh start/running, process 889
    

    Does this mean SSH status is okay. If not what should the output be if the status is okay.

  • Admin
    Admin almost 9 years
    Thanks for that. Just couldn't find any reference to what output to expect when checking status. I'm having difficulty with a ssh tunnel connection so going through all the necessary to try to sort it.
  • Admin
    Admin almost 9 years
    Thanks for that. Would have marked it as correct but Svan got in there first. Sorry.