I have installed CentOS7 in VMWare Workstation 12 player and I'm trying to use key-based SSH authentication. I have completed the process of passwordless SSH and it works fine but I have to start the SSHD service every time I open VMWare as it refuses to connect to port 22, which is the default and I haven't changed it.
The hostname is
osboxes and the FQDN is
osboxes.local.com. For some reason I also need to set hostname as
osboxes.local.com all the time manually even if there is entry in /etc/hosts file.
Please suggest how to keep SSHD service running all the time and set permanent FQDN hostname in CentOS7?