Enable SSH access to ubuntu from the terminal

  1. by using the Ctrl+Alt+T keyboard shortcut or by clicking on the terminal icon and install the openssh-server package by typing:
    sudo apt updatesudo apt install openssh-server
    Enter the password when prompted and enter Y to continue with the installation.
  2. Once the installation is completed, the SSH service will start automatically. To verify that the installation was successful and SSH service is running type the following command which will print the SSH server status:
    sudo systemctl status ssh
    You should see something like Active: active (running) :
    Press q to get back to the command line prompt.
  3. Ubuntu comes with a firewall configuration tool called UFW. If the firewall is enabled on your system, make sure to open the SSH port:
    sudo ufw allow ssh
Now that SSH is installed and running on your Ubuntu system you can connect to it via SSH from any remote machine. Linux and macOS systems have SSH clients installed by default. If you want to connect from a Windows machine then you can use an SSH client such as PuTTY.

Comentarios

Entradas populares de este blog

crear tftp en linux

instalar .bundle en linux

CHMOD +x , 755 , explicacion