--- /dev/null
+USER=pl_genicw
+KEY_FILE=../cmdline/test.pkey
+DEST_DIR=/home/pl_genicw
+
+# for installing into the nodemanager
+#USER=root
+#KEY_FILE=root_ssh_key.rsa
+#DEST_DIR=/usr/share/NodeManager
#!/bin/bash
+
+source component_slice_config.sh
+
echo connecting to node: $1
-export FILES="component.py ../util/cert.py ../util/credential.py ../util/excep.py ../util/geniserver.py ../util/geniticket.py ../util/gid.py ../util/misc.py ../util/record.py ../util/rights.py ../util/report.py ../util/trustedroot.py ../registry/trusted_roots install"
+export FILES="component.py ../util/cert.py ../util/credential.py ../util/excep.py ../util/geniserver.py ../util/geniticket.py ../util/gid.py ../util/misc.py ../util/record.py ../util/rights.py ../util/report.py ../util/trustedroot.py ../plc/trusted_roots install"
echo $FILES
-scp -i root_ssh_key.rsa -r $FILES root@$1:/usr/share/NodeManager
+scp -i $KEY_FILE -r $FILES $USER@$1:$DEST_DIR
+source component_slice_config.sh
+
echo connecting to node: $1
-ssh -i root_ssh_key.rsa root@$1
+ssh -i $KEY_FILE $USER@$1