diff options
-rw-r--r-- | README | 1 | ||||
-rwxr-xr-x | rtadm | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -69,6 +69,7 @@ clint:: This has created 'remote-access-clint.tar.gz' which has the details of the connection. The next step is to deliver that tarball to the client. +The file is created under the subdirectory ''tar/'' . The client now connects to the web interface, places the tarball and clicks on "Connect". A connection should be established. @@ -37,7 +37,9 @@ create() echo $USERNAME > ~/tmp/user echo $TUNNEL_PORT > ~/tmp/tunnelport echo $COMMENT > ~/tmp/basename - tar -czf remote-access-$COMMENT.tar.gz -C ~/tmp host key port tunnelport user --owner root --group root + mkdir -p "$HOME/tar" + tarball="$HOME/tar/remote-access-$COMMENT.tar.gz" + tar -czf $tarball -C ~/tmp host key port tunnelport user --owner root --group root mkdir -m 700 -p ~/.ssh umask 022 cat ~/tmp/key.pub >> ~/.ssh/authorized_keys |