create container, set password, install openssh server startup error
use/usr/SBIN/sshd – D in the container to start the error report
[root@9d41c7f36c5e tmp]# /usr/sbin/sshd -d debug1: sshd version OpenSSH_7.4, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: key_load_private: No such file or directory debug1: key_load_public: No such file or directory Could not load host key: /etc/ssh/ssh_host_rsa_key debug1: key_load_private: No such file or directory debug1: key_load_public: No such file or directory Could not load host key: /etc/ssh/ssh_host_ecdsa_key debug1: key_load_private: No such file or directory debug1: key_load_public: No such file or directory Could not load host key: /etc/ssh/ssh_host_ed25519_key sshd: no hostkeys available -- exiting.
solution:
# /usr/sbin/sshd-keygen -A # ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key # ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key then restart # /usr/sbin/sshd
Remote link
ssh root@ip -p 22
Similar Posts:
- sshd Start Report Error: sshd re-exec requires execution with an absolute path
- Git Connect Error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
- [Solved] SSH is disconnected as soon as it is connected
- Install a docker container in centos7 that can log in SSH
- How to Solve Error: ssh_exchange_identification:read connection reset by peer
- [Solved] SSH connection server error: warning: remote host identification has changed!
- How to Solve host key verification failed
- [Solved] SSH Remote Login Error: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
- Mac remote service repair: warning: remote host identification has changed!
- SSH login error: no common Kex alg [How to Solve]