pondelok 14. februára 2022

dpkg-reconfigure openssh-server

Sometimes openssh server doesn't have key files. I mean these files:






 [root@bestubuntu ~]# ll /etc/ssh/ssh_host*

-rw------- 1 root root  668 Mar  16 2020 /etc/ssh/ssh_host_dsa_key

-rw-r--r-- 1 root root  590 Mar  16 2020 /etc/ssh/ssh_host_dsa_key.pub

-rw------- 1 root root  963 Mar  16 2020 /etc/ssh/ssh_host_key

-rw-r--r-- 1 root root  627 Mar  16 2020 /etc/ssh/ssh_host_key.pub

-rw------- 1 root root 1675 Mar  16 2020 /etc/ssh/ssh_host_rsa_key

-rw-r--r-- 1 root root  382 Mar  16 2020 /etc/ssh/ssh_host_rsa_key.pub



When openssh server is not good install on ubuntu or debian we could have a problem with missing these files. openssh server needs files for cryptography communication. 


How to solve?


- reconfigure package openssh:


dpkg-reconfigure opensssh-server


after this, openssh server will generate these keys. 



Žiadne komentáre:

Zverejnenie komentára