0

I have accidentally run command pkill -U root. I was in root user.. now I am not able to access through ssh from my local system but I can access my server's terminal on my browser from my digitl ocean account.

  • Probably just want to restart the server. You probably killed several processes that are required for various things, including sshd. – jesse_b Nov 23 '19 at 22:03
  • @Jesse_b Please help with some commands.. – Deepak Umredkar Nov 23 '19 at 22:10
  • 3
    /sbin/shutdown -r now – jesse_b Nov 23 '19 at 22:11
  • will it shutdown the server..? if yes then what about restart – Deepak Umredkar Nov 23 '19 at 22:13
  • 1
    It will restart the server which includes shutting it down. If you are unable to restart the server because it's in production you probably shouldn't have been running pkill commands on it willy nilly in the first place. It's very likely that whatever is running on it isn't working or isn't working as it should anyway so you might as well just rip the band aid off. – jesse_b Nov 23 '19 at 22:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.