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": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"cloudwatch:Describe*", | |
"ec2:Describe*", | |
"ec2:RebootInstances", | |
"rds:Describe*", | |
"rds:RebootDBInstance" |
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
ifconfig |
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
passwd NOME_DO_USUARIO |
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
adduser NOME_DO_USUARIO -d /HOME_DO_USUÁRIO/ |
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
/etc/init.d/vsftpd restart |
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
sed -i s/anonymous_enable=YES/anonymous_enable=NO/g /etc/vsftpd/vsftpd.conf | |
sed -i s/#chroot_local_user=YES/chroot_local_user=YES/g /etc/vsftpd/vsftpd.conf |
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
yum install vsftpd -y;chkconfig vsftpd on |
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
sed -i s/'KEY_COUNTRY="US"'/'KEY_COUNTRY="BR"'/g /etc/openvpn/easy-rsa/vars | |
sed -i s/'KEY_PROVINCE="CA"'/'KEY_PROVINCE="SP"'/g /etc/openvpn/easy-rsa/vars | |
sed -i s/'KEY_CITY="SanFrancisco"'/'KEY_CITY="SaoPaulo"'/g /etc/openvpn/easy-rsa/vars | |
sed -i s/'KEY_ORG="Fort-Funston"'/'KEY_ORG="Empresa"'/g /etc/openvpn/easy-rsa/vars | |
sed –i s/KEY_EMAIL=mail@host.domain/KEY_EMAIL=seuemail@seudominio/g /etc/openvpn/easy-rsa/vars | |
sed -i /KEY_NAME=changeme/d /etc/openvpn/easy-rsa/vars | |
sed -i /KEY_CN=changeme/d /etc/openvpn/easy-rsa/vars | |
sed -i /KEY_OU=changeme/d /etc/openvpn/easy-rsa/vars | |
sed -i /PKCS11_MODULE_PATH=changeme/d /etc/openvpn/easy-rsa/vars | |
sed -i /PKCS11_PIN=1234/d /etc/openvpn/easy-rsa/vars |
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
client | |
dev tun | |
proto udp | |
remote IP_DO_SERVIDOR_VPN 1194 | |
resolv-retry infinite | |
nobind | |
persist-key | |
persist-tun | |
keepalive 10 120 | |
ca ca.crt |
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
chown usuario: PASTA_USUÁRIO_ACESSO_FTP/client1.key | |
chown usuario: PASTA_USUÁRIO_ACESSO_FTP/dh1024.pem | |
ou | |
chmod 777 PASTA_USUÁRIO_ACESSO_FTP/client1.key | |
chmod 777 PASTA_USUÁRIO_ACESSO_FTP/dh1024.pem |
NewerOlder