可能你安裝好ubuntu后想通過SSH連接,但是怎么會連接不上?在ssh_config 里面也配置了啊,其實這個文件是用來配置的客戶端的(Server自己做客戶端連接別的Server的時候),搜索到一篇外文介紹
ssh_config: configuration file for the ssh client on the host machine you are running. For example, if you want to ssh to another remote host machine, you use a SSH client. Every settings for this SSH client will be using ssh_config, such as port number, protocol version and encryption/MAC algorithms.
sshd_config: configuration file for the sshd daemon (the program that listens to any incoming connection request to the ssh port) on the host machine. That is to say, if someone wants to connect to your host machine via SSH, their SSH client settings must match your sshd_config settings in order to communicate with you, such as port number, version and so on.
所以接下來你得看sshd_config 存在嗎?不存在就安裝
sudo apt-get install openssh-server
sudo service ssh start
ps –ef | grep ssh