Fully functional and brand new built VM, Physical server, Container or any boxes with Linux distro, however, SSH is not working.
Newly built Linux boxes with Server OS, the SSH service or remote access to the box won't start functioning even though the server is up and running.
For the SSH to start it needs to have the required SSH keys for the service to start.
The solution is to run this command:
ssh-keygen -A
After typing the command, try systemctl start ssh or systemctl start sahd
Also check the status by:
systemctl status ssh / systemctl status sshd
And also good idea to start SSH once the system is restarted.
Type: systemctl enable ssh / systemctl enable sshd
Once the service or status of the SSH is confirmed running, then the system or device can connect remotely or other devices can connect to the local system as well.
That's it, till next time. Enjoy exploring the Linux World!
Prayer connect us to God, line is never congested!
Have Faith and Trust Jesus, He always do great things in your life, Trust His Timing and never loss heart on the process, while great things are coming your way! Of course, always be humble once you got the blessings and never forget to Thanks God for the blessings!
Comments
Post a Comment