From ccadcf397c0e1c3a79a84a3b7e45b8ac2647b336 Mon Sep 17 00:00:00 2001 From: Srikant Patnaik Date: Mon, 25 May 2015 19:35:48 +0530 Subject: formatted return string for ssh request from client --- server.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } # ------------------------------------------------------------------------- -- cgit