Spaces:
Paused
Paused
BinaryONe
commited on
Commit
·
4aeec3c
1
Parent(s):
d137eed
Changes
Browse files
start.sh
CHANGED
|
@@ -130,11 +130,11 @@ ssh-add /home/admin/.ssh/id_rsa || { echo "Failed to add SSH private key to agen
|
|
| 130 |
|
| 131 |
# Ensure SSHD config is correctly set up
|
| 132 |
echo "* Configuring SSHD *"
|
| 133 |
-
echo "UseKeychain yes" >> /home/admin/.ssh/config
|
| 134 |
echo "AddKeysToAgent yes" >> /home/admin/.ssh/config
|
| 135 |
|
| 136 |
# Restart SSH service
|
| 137 |
-
service ssh restart || { echo "Failed to restart SSH service"; exit 1; }
|
| 138 |
|
| 139 |
add_ssh_key_to_agent
|
| 140 |
|
|
@@ -142,7 +142,7 @@ echo "* Contents of id_rsa of Admin:"
|
|
| 142 |
cat /home/admin/.ssh/id_rsa
|
| 143 |
|
| 144 |
echo "* Testing admin's SSH login locally *"
|
| 145 |
-
ssh -o StrictHostKeyChecking=no -i /home/admin/.ssh/id_rsa admin@
|
| 146 |
|
| 147 |
activate_virtual_env
|
| 148 |
set_working_directory
|
|
|
|
| 130 |
|
| 131 |
# Ensure SSHD config is correctly set up
|
| 132 |
echo "* Configuring SSHD *"
|
| 133 |
+
#echo "UseKeychain yes" >> /home/admin/.ssh/config
|
| 134 |
echo "AddKeysToAgent yes" >> /home/admin/.ssh/config
|
| 135 |
|
| 136 |
# Restart SSH service
|
| 137 |
+
#service ssh restart || { echo "Failed to restart SSH service"; exit 1; }
|
| 138 |
|
| 139 |
add_ssh_key_to_agent
|
| 140 |
|
|
|
|
| 142 |
cat /home/admin/.ssh/id_rsa
|
| 143 |
|
| 144 |
echo "* Testing admin's SSH login locally *"
|
| 145 |
+
ssh -o StrictHostKeyChecking=no -i /home/admin/.ssh/id_rsa admin@0.0.0.0 -p 2222 exit
|
| 146 |
|
| 147 |
activate_virtual_env
|
| 148 |
set_working_directory
|