#!/bin/bash
if [ -z $1 ]; then
echo "Usage : sh $0 username passwd"
echo "Example: sh $0 root 'passwd!@#2015'"
fi
function sendSSHKey(){
SSH='ssh-copy-id -i'
HOME_DIR=`cd ~ && pwd`
KEYSTORE=$HOME_DIR/.ssh/id_rsa.pub
# $SSH $KEYSTORE ${1}@${2}
# 三个参数是'
ssh无密钥登陆批量脚本
发表评论
209 views