summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrikant Patnaik2015-05-25 19:35:48 +0530
committerSrikant Patnaik2015-05-25 19:35:48 +0530
commitccadcf397c0e1c3a79a84a3b7e45b8ac2647b336 (patch)
treeb69fc1cd1cd30647d6a9c17b8d16bcec48227227
parent8de450aeac9cd8b797df05172bb89f1c92c25192 (diff)
downloadtuxviewer-ccadcf397c0e1c3a79a84a3b7e45b8ac2647b336.tar.gz
tuxviewer-ccadcf397c0e1c3a79a84a3b7e45b8ac2647b336.tar.bz2
tuxviewer-ccadcf397c0e1c3a79a84a3b7e45b8ac2647b336.zip
formatted return string for ssh request from client
-rwxr-xr-xserver.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.cgi b/server.cgi
index e23da25..ca7c2bb 100755
--- a/server.cgi
+++ b/server.cgi
@@ -43,7 +43,7 @@ function usernamePasswdforSSH() {
randomPasswd=$(date | md5sum | cut -c6-16) #just in case :)
encryptedPasswd=$(openssl passwd $randomPasswd)
sudo useradd -p $encryptedPasswd -r -s /bin/false $randomUser
- echo $firstAvailablePort $randomPasswd $randomUser
+ echo $firstAvailablePort,$randomPasswd,$randomUser
}
# -------------------------------------------------------------------------