This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat >> ~ec2-user/.ssh/authorized_keys << EOF | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0QIiv+QYlGIlBc6FFNMQ1WDWfqV2DrpxK2owdDCXsofIoMEhR+QUU4crJ6sNrIe7hMtYbT8c8t487zZHqPbiktjH3rhDq5soeKpUpbcQAbVo9eIC5y4nSr4FoPxonhF0vF0e7keTzquoAVWGYzyyLqsTN8AuJ0aHpsuWrJSLRNoPE/jYkM+gQjp3qecKlgZ1WxOokBGzebufUhszBYwGCD0CT4iKiU4HIQXf+einBq/cEJvtDX5bbttsfaU4pPZ2EjM37o2RTzHpyzO42fn6nHi01Hw2xInPiEGlmwQGV1EK9hA7S77ZriYaVlWEsKWNsBfcjbkS3J4J+UMJBoxFB pahud@pahud-mb12.2016 | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.1' | |
services: | |
filebeat: | |
user: root | |
image: docker.elastic.co/beats/filebeat:6.2.4 | |
volumes: | |
- ./filebeat.yml:/usr/share/filebeat/filebeat.yml:ro | |
- /var/lib/docker/containers:/var/lib/docker/containers:ro | |
- /var/run/docker.sock:/var/run/docker.sock | |
command: "filebeat -e -v --strict.perms=false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo yum install gcc -y | |
sudo yum install openssl-devel -y | |
sudo yum install zlib-devel -y | |
sudo yum install mlocate -y | |
sudo yum install autoconf -y | |
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.1p1.tar.gz | |
tar zxvf openssh-9.1p1.tar.gz | |
cd openssh-9.1p1 && ./configure && make && sudo make install |