11 lines
354 B
Bash
11 lines
354 B
Bash
#!/bin/bash
|
|
|
|
echo -e "${PURPLE}${BOLD}Enter the receiving server ip : ${RESET}"
|
|
read RECEIVING_IP
|
|
echo -e "${PURPLE}${BOLD}Enter the receiving server user : ${RESET}"
|
|
read RECEIVING_USER
|
|
echo -e "${PURPLE}${BOLD}Enter the receiving server port : ${RESET}"
|
|
read RECEIVING_PORT
|
|
|
|
ssh-keygen
|
|
ssh-copy-id -p ${RECEIVING_PORT} ${RECEIVING_USER}@${RECEIVING_IP} |