I am on a CentOS guest OS on a VirtualBox. I need to connect to this server through SSH using its public IP. More importantly, I need to connect to this server from within the guest host.
I have tried port forwarding with NAT as some forum suggested but I think I am lost there.
SSH output is just
root@localhost ~]# ssh firstname.lastname@example.org ssh: connect to host xx.xxx.xxx.xxx port 22: Connection refused
I am able to connect to the server through host machine.