//关闭防火墙selinux //安装打包命令,git [root@jenkins ~]# yum -y install maven [root@jenkins ~]# yum -y install git //配置免密登录 [root@localhost ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: SHA256:npcyZyHpOPmqGL1nbpZRj7UYULZxJhvNIcDg2G9Qvso root@localhost.localdomain The key's randomart image is: +---[RSA 3072]----+ | .oooBo+. | | + oo. Xo | | . + ..o | | o .o.. | | +.S*.. | | o o.=oooo | | . E +o* = | | o .*o * | | . oBo.. | +----[SHA256]-----+ [root@localhost ~]# ssh-copy-id root@192.168.216.215 /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys root@192.168.216.215's password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh 'root@192.168.216.215'" and check to make sure that only the key(s) you wanted were added. [root@localhost ~]# ssh root@192.168.216.215 Last login: Wed Oct 20 11:03:43 2021 from 192.168.216.200 [root@localhost ~]# exit 登出 Connection to 192.168.216.215 closed. |