setup_ssh.sh #1

  • //
  • guest/
  • perforce_software/
  • helix-installer/
  • dev/
  • test/
  • docker/
  • setup_ssh.sh
  • View
  • Commits
  • Open Download .zip Download (483 B)
#!/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 27284 C. Thomas Tyler Added Docker test suite to displace Vagrant.
Initial version passes with options:
hits.sh -o centos7