Tuesday, May 23, 2023

[virtualbox][ubuntu] Host OS cannot send SSH command to Guest (Ubuntu) OS

 


Possible solution:

(1) Ensure that the VirtualBox Network Configuration has the SSH port entry.









(2) Check that the Guest OS (Ubuntu) has the SSH server running.


If the system responded with ssh.service does not exist, install the SSH service.

run command:
sudo apt update

and then:
sudo apt install openssh-server

check the status:
sudo systemctl status ssh

(to stop the server, press q)




If the firewall is active, allow SSH to pass through it:
sudo ufw allow ssh


A successful connection to the Guest SSH Server would have the following output:




No comments:

Post a Comment