#!/bin/sh
scriptPath=$(echo $0 | sed "s|^\.\./|`pwd`/../|" | sed "s|^\./|`pwd`/|")
basePath=$(dirname ${scriptPath})
currPath=$(pwd)
cd "${basePath}"
echo "sc Remote $1" >../../Config/Scenes/connect.con
echo "scwp puppet1 $1" >../../Config/Scenes/connectWithPuppet.con
ssh -i ../../Config/Keys/id_rsa_nao -o StrictHostKeyChecking=no root@$1
cd "${currPath}"
