当前位置: 首页> 教育> 培训 > 电子商务公司名字大全_电商网站建设系统_运营主要做什么工作_seo查询网站

电子商务公司名字大全_电商网站建设系统_运营主要做什么工作_seo查询网站

时间:2025/7/24 6:39:43来源:https://blog.csdn.net/weixin_53662874/article/details/146871642 浏览次数:0次
电子商务公司名字大全_电商网站建设系统_运营主要做什么工作_seo查询网站

PS:前提可以正常联网

~连接方

vi ssh.sh
​
#!/bin/bash
​
IPADDRESS1="$1"
IPADDRESS2="$2"
USER="$3"
PASSWORD="$4"
​
systemctl restart network && yum -y install wget && wget -O /etc/yum.repos.d/CentOs-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo && wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo && yum clean all && yum makecache && rm -rf ~/.ssh/{known_hosts,id_rsa*} && ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa &> /dev/null && sed -i '/StrictHostKeyChecking/c StrictHostKeyChecking no' /etc/ssh/ssh_config && rpm -q sshpass &> /dev/null || yum -y install sshpass &> /dev/null && sshpass -p ${PASSWORD} ssh-copy-id -i ${USER}@${IPADDRESS2} &> /dev/null && echo "success"
​
chmod +x ssh.sh
​
./ssh.sh [连接方IPADDRESS1] [被连接方IPADDRESS2] [USER] [PASSWORD]
​

~被连接方

vi ssh.sh
​
#!/bin/bash
​
IPADDRESS1="$1"
IPADDRESS2="$2"
USER="$3"
PASSWORD="$4"
​
systemctl restart network && yum -y install wget && wget -O /etc/yum.repos.d/CentOs-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo && wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo && yum clean all && yum makecache && rm -rf ~/.ssh/{known_hosts,id_rsa*} && ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa &> /dev/null && sed -i '/StrictHostKeyChecking/c StrictHostKeyChecking no' /etc/ssh/ssh_config && rpm -q sshpass &> /dev/null || yum -y install sshpass &> /dev/null && sshpass -p ${PASSWORD} ssh-copy-id -i ${USER}@${IPADDRESS2} &> /dev/null && echo "success"
​
chmod +x ssh.sh
​
./ssh.sh [被连接方IPADDRESS1] [连接方IPADDRESS2] [USER] [PASSWORD]
关键字:电子商务公司名字大全_电商网站建设系统_运营主要做什么工作_seo查询网站

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: