Enable SSH access to ubuntu from the terminal
- by using the
Ctrl+Alt+Tkeyboard shortcut or by clicking on the terminal icon and install theopenssh-serverpackage by typing:sudo apt updatesudo apt install openssh-serverEnter the password when prompted and enterYto continue with the installation. - 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 sshYou should see something likeActive: active (running):Pressqto get back to the command line prompt. - 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
Publicar un comentario