1.首先,我們搜索一下CentOS的軟件庫裏面有沒有已經定義好的SSH服務器包:
$ yum search ssh
... ...
openssh.x86_64 : An open source implementation of SSH protocol versions 1 and 2
openssh-askpass.x86_64 : A passphrase dialog for OpenSSH and X
openssh-clients.x86_64 : An open source SSH client applications
openssh-ldap.x86_64 : A LDAP support for open source SSH server daemon
openssh-server.x86_64 : An open source SSH server daemon
... ...
OpenSSH是Secure Shell的一個開源實現。從上面的搜索結果可以看到,CentOS的軟件庫裏面已經有了OpenSSH的服務器包(openssh-server)和客戶端包(openssh-clients),用yum install可以直接安裝。
手動啓動sshd服務,方便後面客戶端的連接:
$ /etc/init.d/sshd start