一.root用户: 1. 在主机A上执行如下命令来生成配对密钥: ssh-keygen -t rsa 按照提示操作,注意,不要输入passphrase.提示信息如下 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 ag
import re Setaliyun=set('')Setczgame=set('')with open('alirpm.txt','r') as f:for line in f:Result=re.subn('-\d.*','',line)[0]Setaliyun.add(Result)#print(Setaliyun) with open('gamerpm.txt','r') as f:for line in f:Result=re.subn('-\d.*','',line)[0]Setc