我在Ubuntu 16.04.7 LTS
哪里得到以下答复dpkg-query
:
dpkg-query -l 'openssh*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==========================================-==========================-==========================-==========================================================================================
ii openssh-client 1:7.2p2-4ubuntu2.10 amd64 secure shell (SSH) client, for secure access to remote machines
ii openssh-server 1:7.2p2-4ubuntu2.10 amd64 secure shell (SSH) server, for secure access from remote machines
ii openssh-sftp-server 1:7.2p2-4ubuntu2.10 amd64 secure shell (SSH) sftp server module, for SFTP access from remote machines
看起来我已经openssh-server
安装了,但我仍然看不到/etc/ssh/sshd_config
文件。做事Ubuntu
有不同吗?
答案1
当您安装软件包时会安装此文件openssh-server
(它是脚本的一部分postinst
)。
尝试运行:
sudo apt-get install --reinstall openssh-server