#!/bin/bashread -p "ip : " ipssh-keygen -t rsa -P ""echo "scp id_rsa.pub start..."scp ~/.ssh/id_rsa.pub $ip:/home/echo "scp id_rsa.pub end."echo "cat id_rsa.pub start..."ssh root@$ip "cat /home/id_rsa.pub >> ~/.ssh/authorized_keys"echo "cat id_rsa.pub end."
linux免密登录配置脚本
时间:2023-05-12
相关推荐