Total download size: 15 k Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. warning: /var/cache/yum/x86_64/7/epel/packages/epel-release-7-14.noarch.rpm: Header V4 RSA/SHA256 Signature, keyID352c64e5: NOKEY Publickeyfor epel-release-7-14.noarch.rpm isnot installed epel-release-7-14.noarch.rpm | 15 kB 00:00:00 Retrieving keyfromfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Importing GPG key0x352C64E5: Userid : "Fedora EPEL (7) <epel@fedoraproject.org>" Fingerprint: 91e97d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-11.noarch (@extras) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Is this ok [y/N]: y Running transactioncheck Running transactiontest Transactiontest succeeded Running transaction Updating : epel-release-7-14.noarch 1/2 Cleanup : epel-release-7-11.noarch 2/2 Verifying : epel-release-7-14.noarch 1/2 Verifying : epel-release-7-11.noarch 2/2
Updated: epel-release.noarch 0:7-14
Complete!
https://blog.gtwang.org/linux/redhat-linux-enable-epel-repo/
EPEL(Extra Packages for Enterprise Linux)是一個由 Fedora Special Interest Group 社群所維護的套件庫,其主要目的是提供各種企業級的 Linux 一些額外的高品質套件,這個套件庫可用於 Red Hat Enterprise Linux(RHEL)、CentOS 與 Scientific Linux(SL)等。
[ansible@workstation ~]$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/ansible/.ssh/id_rsa): Created directory '/home/ansible/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/ansible/.ssh/id_rsa. Your public key has been saved in /home/ansible/.ssh/id_rsa.pub. The key fingerprint is: SHA256:9sCdpJq6hVydGJpZ5ChfB4si9VwyhK6Ct1eBDSuqx7Q ansible@workstation The key's randomart image is: +---[RSA 2048]----+ | .o+ + | | ..o.O o | |..o ==* . . | | .o+o*o* = . | |.o .= o.S o | |= o. o.+ o | |o+ oo.+ . | |. E .o | | . .o. | +----[SHA256]-----+
[ansible@control ~]$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/ansible/.ssh/id_rsa): Created directory '/home/ansible/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/ansible/.ssh/id_rsa. Your public key has been saved in /home/ansible/.ssh/id_rsa.pub. The key fingerprint is: SHA256:9W/Z7ejLKYb99gVh1BbevWgM/AbbgFlNneswMyqbx9M ansible@control The key's randomart image is: +---[RSA 2048]----+ | .o.ooo| | = o.o=| | o.= oo+| | . .O*.o.| | S .oBB. | | . .o. =.| | =o. + +| | o.++E.+.| | ...=Boo| +----[SHA256]-----+
[ansible@control ~]$ ssh-copy-id workstation /bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/ansible/.ssh/id_rsa.pub" /bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys Password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'workstation'" and check to make sure that only the key(s) you wanted were added.
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment) #includedir /etc/sudoers.d cloud_userALL=(ALL) ALL cloud_userALL=(ALL) NOPASSWD: ALL
PLAY [workstation] **********************************************************************************************************************************************************************************
PLAY [workstation] **********************************************************************************************************************************************************************************
TASK [Gathering Facts] ****************************************************************************************************************************************************************************** fatal: [workstation]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added 'workstation,10.0.1.200' (ECDSA) to the list of known hosts.\r\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-interactive).", "unreachable": true}