0

I ran ssh localhost, and got:

ssh :connect to host localhost port 22: Connection refused 

Then I tried sudu apt-get install openshh-server, and got:

user is not in the sudoers file .This incident will be reported 

Please tell me what should be done further so that an SSH connection is established. I haven't found the solution to my problem in the previous answers. Thank you very much.

wjandrea
  • 14,236
  • 4
  • 48
  • 98

1 Answers1

1

Somehow you managed to mangle your group memberships so that you can't run sudo. Answers to this question show how to fix that. Then you can carry on with installing OpenSSH. Good luck!

rclocher3
  • 779
  • 8
  • 19
  • You're welcome! If my answer has been helpful, please consider upvoting or accepting it. – rclocher3 Dec 01 '16 at 18:10
  • ya sure actually the shift key is not working ,nor space nor esc key :? what can you suggest to boot ? :/ – Umme Dec 01 '16 at 18:22