Welcome to the Linux Foundation Forum!

error explanation possible?

hi,

as i tried the demo creating modifying and removing a newuseron the VM..when i wanted to connect via ssh to the user the connection to the port was refused, why is that so?

thanks and please give me feedback if such questions are welcome or rather not=)

great course

regards

bernhard

Best Answer

  • luisviveropena
    luisviveropena Posts: 1,296
    Answer ✓

    Hi Bernhard,

    Please provide the Chapter and section you are working on, or the lab.

    The error message "ssh: connect to the host localhost port 22: Connection refused" indicates that the ssh service is not running, or is not running on port 22.

    You can check the status of the service with the following command:

    sudo systemctl status ssh

    If it's not running but it's installed, you can start it by doing:

    sudo systemctl start ssh

    Regards,
    Luis.

Answers

  • Hi Luis,

    also that is now clear and the task accomplished.

    It was the Chapter 04. User Account Management, the Demo: Creating, Modifying, and Removing a New User Account Video which i tried to redo.

    Again thank you very much

    regards

    bernhard

  • luisviveropena
    luisviveropena Posts: 1,296

    Hi Bernhard,

    I'm glad it was useful.

    Regards,
    Luis.

Categories

Upcoming Training