diff --git a/porygon-management.sh b/porygon-management.sh index 63694ca..9433fde 100644 --- a/porygon-management.sh +++ b/porygon-management.sh @@ -26,7 +26,7 @@ read -p "enter the server's hostname: " HOSTNAME read -p "enter the server's IP: " IP echo "trusting remote ssh host key" -ssh-keyscan -H "$IP" >> /root/.ssh/known_hosts || { +ssh-keyscan -P "$PORT" -H "$IP" >> /root/.ssh/known_hosts || { echo "failed to trust remote host key" exit 1 }