Environmental Science:
Ubuntu 20.04.3-live-server
Hyper-V virtual environment
Problem Description:
Ubuntu 20.04.3 fails to start sshd with error: failed to start OpenBSD secure shell server
sshd – T
prompt sshd: no hostkeys available – exiting.
Solution:
1. Check whether the SSH service is enabled
PS - e | grep ssh
No response
2. Install ssh
apt update
apt-get install openssh-server openssh-client
Prompt installed
3. Implementation
/etc/init.d/ssh start
fail to start
Continue to execute ssh-keygen -A
Restart successfully

Read More:
- [Solved] Gbase Install Error: service cgconfig is not exist on hosts
- [Solved] SSH WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
- Install and start the tftp-server server and possible solutions to Redirecting to /bin/systemctl restart xinetd.service problems
- SSH Connect Service Error: Could not connect to ‘xxx.xxx.xx.xx‘ (port 22): Connection failed.
- Vmware virtual Mechine connect VScode Error: channel 3: open failed: administratively prohibited: open failed
- [Solved] SSH Startup Error: unable to load host key /etc/ssh/ssh_host_ed25519_key bad permissions
- [Solved] Sshd startup error: Failed at step CGROUP spawning /usr/sbin/sshd: No space left on device
- Ubuntu Error: dpkg: error processing package mysql-community-server (–configure):
- How to Solve Ubuntu “Failed to fetch” Error
- Restart and stop of nginx in Linux service
- [Solved] ffmpeg Error: fatal error: zlib.h: Not having that file or directory
- NVIDIA SMI error after Ubuntu 20.04 restart [How to Solve]
- Kali starts SSH service error [How to Fix]
- Linux Install Docker Error: Failed to restart docker.service: Unit docker.service not found.
- [Solved] WSUS client access server exception error – 0x8024401f
- [Solved] Ubuntu Server 18.4 System /etc/sudoers: syntax error near line 32
- [Solved] docker: Error response from daemon: OCI runtime create failed: container_linux.go:380
- linux tomcat Run (DWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugIni)
- Errors encountered when configuring static ip on Ubuntu 18.04
- [Solved] wsl Error: WslRegisterDistribution failed with error: 0x800701bc