Thursday, March 29, 2012

localhost: ssh: connect to host localhost port 22: Connection refusedapt-get install openssh-server

If you get this error :


localhost: ssh: connect to host localhost port 22: Connection refused


Run the folloing command from the terminal


->     sudo apt-get install openssh-server 

2 comments:

  1. i ran the above comment on terminal..but i got the output as "hduser is not in the sudoers file.this incident will be reported".please help me.

    ReplyDelete
    Replies
    1. Is hduser has administrator rights?? if no make its account type to adminstrator or root and then try if above does not work try following :)

      Refer this http://maketecheasier.com/fixing-sudo-error-in-ubuntu/2012/01/03

      http://superuser.com/questions/120340/user-not-in-the-sudoers-file-this-incident-will-be-reported

      http://h4x3d.com/user-is-not-in-the-sudoers-file-this-incident-will-be-reported/

      Delete

Thank you for Commenting Will reply soon ......

Featured Posts

 Mastering Unix Commands: An In-depth Look at Chroot, Env, Nice, Nohup, StdBuf, and Timeout Hashtags: #UnixCommands #Chroot #Env #Nice #Nohu...