Skip to content
This repository was archived by the owner on Nov 22, 2018. It is now read-only.

Commit f3110cb

Browse files
committed
Cleanup and removed extra ssh test
1 parent 7ff59ea commit f3110cb

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

gateway/0.1.4/Dockerfile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,22 @@ RUN ( \
8484
echo "# Exit on errors or unset variables"; \
8585
echo ""; \
8686
echo ""; \
87-
echo "# Create, cat and test SSH keys, if necessary"; \
87+
echo "# Create SSH keys, if necessary"; \
8888
echo "#"; \
8989
echo "chown -R autossh:autossh /home/autossh"; \
9090
echo "[ -f /home/autossh/.ssh/id_rsa.pub ]|| \\"; \
91-
echo "{"; \
9291
echo " /sbin/setuser autossh ssh-keygen -b 4096 -t rsa -N \"\" -C dkey\${gID}-\$(date +%Y-%m-%d-%T) -f /home/autossh/.ssh/id_rsa"; \
93-
echo " cat /home/autossh/.ssh/id_rsa.pub"; \
94-
echo " echo"; \
95-
echo " echo"; \
96-
echo " echo 'Copy the public key above, then press Enter to test it'"; \
97-
echo " echo"; \
98-
echo " read ENTER_TO_CONTINUE"; \
99-
echo " /sbin/setuser autossh ssh -p \${PORT_AUTOSSH} autossh@\${IP_HUB} -o StrictHostKeyChecking=no 'hostname; exit'"; \
100-
echo "}"; \
92+
echo ""; \
93+
echo ""; \
94+
echo "# Cat and test SSH keys"; \
95+
echo "#"; \
96+
echo "cat /home/autossh/.ssh/id_rsa.pub"; \
97+
echo "echo"; \
98+
echo "echo"; \
99+
echo "echo 'Copy the public key above, then press Enter to test it'"; \
100+
echo "echo"; \
101+
echo "read ENTER_TO_CONTINUE"; \
102+
echo "/sbin/setuser autossh ssh -p \${PORT_AUTOSSH} autossh@\${IP_HUB} -o StrictHostKeyChecking=no 'hostname; exit'"; \
101103
) \
102104
>> /app/ssh_config.sh; \
103105
chmod +x /app/ssh_config.sh

0 commit comments

Comments
 (0)