#!/bin/bash # This script sets up ssh for use within container mkdir -p /home/qa/.ssh mv /tmp/insecure_ssh_key.pub /home/qa/.ssh/authorized_keys mv /tmp/insecure_ssh_key /home/qa/.ssh/id_rsa cat << EOF > /home/qa/.ssh/config Host * StrictHostKeyChecking no UserKnownHostsFile /dev/null User root LogLevel QUIET EOF chown -R qa:qa /home/qa/.ssh chmod 700 /home/qa/.ssh chmod 644 /home/qa/.ssh/authorized_keys chmod 400 /home/qa/.ssh/id_rsa chmod 400 /home/qa/.ssh/config
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 28323 | Robert Cowham | Upgrade to Helix Installer which installs Released SDP 2021.2.27425 (2021/02/09). | ||
//guest/perforce_software/helix-installer/dev-ami-builder/test/docker/setup_ssh.sh | |||||
#1 | 28153 | Robert Cowham |
Upgrade to latest version of Helix Installer Redo ami_install_sdp.sh changes |
||
//guest/perforce_software/helix-installer/main/test/docker/setup_ssh.sh | |||||
#1 | 27427 | C. Thomas Tyler |
Released SDP 2021.2.27425 (2021/02/09). Copy Up using 'p4 copy -r -b perforce_software-helix-installer-dev'. |
||
//guest/perforce_software/helix-installer/dev/test/docker/setup_ssh.sh | |||||
#1 | 27284 | C. Thomas Tyler |
Added Docker test suite to displace Vagrant. Initial version passes with options: hits.sh -o centos7 |