privateone commited on
Commit
bf198bd
·
verified ·
1 Parent(s): a604c7a

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +2 -2
start.sh CHANGED
@@ -77,8 +77,8 @@ add_admin_authorized_keys() {
77
  echo "* Authorised Keys: $(cat /home/admin/.ssh/authorized_keys)"
78
  echo "* Known HOST File :$(cat /home/admin/.ssh/known_hosts)"
79
  #chmod 600 /home/admin/.ssh/authorized_keys || { echo "Failed to set authorized_keys permissions"; exit 1; }
80
- echo "password" || su - admin
81
- whoami
82
  }
83
 
84
  # Function to add SSH private key to the SSH agent
 
77
  echo "* Authorised Keys: $(cat /home/admin/.ssh/authorized_keys)"
78
  echo "* Known HOST File :$(cat /home/admin/.ssh/known_hosts)"
79
  #chmod 600 /home/admin/.ssh/authorized_keys || { echo "Failed to set authorized_keys permissions"; exit 1; }
80
+ echo "password" | su - admin
81
+ echo "I am $(whoami)"
82
  }
83
 
84
  # Function to add SSH private key to the SSH agent