I have been in DevOps related jobs for past 6 years dealing mainly with Kubernetes in AWS and on-premise as well. I spent quite a lot …
:date_long | 4 min Read
Git clone with private key
git clone git@github.com:autocloudmaniacs/red-queen-appl.git --config core.sshCommand="ssh -i ~/.ssh/erste"
Create ~/.ssh/config
file
Host github.com-autocloudmaniacs
ServerAliveInterval 60
HostName github.com
User git
IdentitiesOnly yes
IdentityFile ~/.ssh/erste
Host gitlab.xx.dd.at
ServerAliveInterval 60
HostName gitlab.xx.dd.at
User git
IdentitiesOnly yes
IdentityFile ~/.ssh/erste
# Gogs in Kubernetes AWS
Host 127.0.0.1:30111
HostName 127.0.0.1:30111
User git
IdentitiesOnly yes
IdentityFile ~/.ssh/udemy_devopsinuse
# linuxinuse account
Host gitlab.websupport.sk
HostName gitlab.websupport.sk
User git
IdentitiesOnly yes
IdentityFile ~/.ssh/websupport-ssh
#xusername account
Host github.com
HostName github.com
User git
IdentitiesOnly yes
IdentityFile ~/.ssh/github-xusername
# **************************************************************
# CodeCommit in AWS
# **************************************************************
Host git-codecommit.*.amazonaws.com
User APKA5CQFERVSVRJMWFPY
IdentityFile ~/.ssh/kops-aws
Host 18.196.105.135
HostName 18.196.105.135
ForwardAgent yes
User ec2-user
AddKeysToAgent yes
IdentityFile ~/Downloads/cert-developer.pem
Host k8s-1 192.168.122.111
HostName 192.168.122.111
User rke
IdentitiesOnly yes
IdentityFile ~/.ssh/rancher
Host k8s-2 192.168.122.112
HostName 192.168.122.112
User rke
IdentitiesOnly yes
IdentityFile ~/.ssh/rancher
# **************************************************************
# mail.office.company.com 25 via 10.17.2.65
# **************************************************************
Host mailx 10.17.2.65
HostName 10.17.2.65
ForwardAgent yes
User root
# DynamicForward 8080
LocalForward 25 mail.office.company.com:25
# Certification VPC - Public Subnet
Host 3.120.245.231
HostName 3.120.245.231
ForwardAgent yes
User ec2-user
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/Downloads/vpc.pem
# Default VPC
Host 18.185.112.45
HostName 18.185.112.45
ForwardAgent yes
User ec2-user
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/Downloads/vpc.pem
# **************************************************************
# AWS Development
# **************************************************************
Host e2-bastion.dev.eng.company.com
HostName e2-bastion.dev.eng.company.com
ForwardAgent yes
User ec2-user
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.dev.id_rsa
Host ajtivi.development
HostName 10.233.101.46
ForwardAgent yes
AddKeysToAgent yes
IdentitiesOnly yes
User centos
Port 22
IdentityFile /home/username/.ssh/dev.ajtivi.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.dev.eng.company.com
Host ip-10-233-101-187.eu-central-1.compute.internal
HostName 10.233.101.187
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.dev.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.dev.eng.company.com
Host ip-10-233-101-235.eu-central-1.compute.internal
HostName 10.233.101.235
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.dev.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.dev.eng.company.com
Host ip-10-233-101-72.eu-central-1.compute.internal
HostName 10.233.101.72
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.dev.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.dev.eng.company.com
Host ip-10-233-102-105.eu-central-1.compute.internal
HostName 10.233.102.105
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.dev.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.dev.eng.company.com
# **************************************************************
# AWS PenTest
# **************************************************************
Host e2-bastion.pnt.eng.company.com 52.58.36.205
HostName 52.58.36.205
ForwardAgent yes
User ec2-user
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.pnt.id_rsa
Host ip-10-235-102-237.eu-central-1.compute.internal 10.235.102.237
HostName 10.235.102.237
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.pnt.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.pnt.eng.company.com
Host ip-10-235-101-155.eu-central-1.compute.internal 10.235.101.155
HostName 10.235.101.155
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.pnt.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.pnt.eng.company.com
Host ip-10-235-102-110.eu-central-1.compute.internal 10.235.102.110
HostName 10.235.102.110
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.pnt.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.pnt.eng.company.com
Host ip-10-235-101-173.eu-central-1.compute.internal 10.235.101.173
HostName 10.235.101.173
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.pnt.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.pnt.eng.company.com
# **************************************************************
# AWS Staging
# **************************************************************
Host e2-bastion.stg.eng.company.com
HostName 18.197.154.70
ForwardAgent yes
User ec2-user
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.stg.id_rsa
Host ip-10-232-101-142.eu-central-1.compute.internal
HostName 10.232.101.142
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.stg.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.stg.eng.company.com
Host ip-10-232-102-170.eu-central-1.compute.internal
HostName 10.232.102.170
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.stg.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.stg.eng.company.com
Host ip-10-232-103-236.eu-central-1.compute.internal
HostName 10.232.103.236
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.stg.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.stg.eng.company.com
# **************************************************************
# AWS Production
# **************************************************************
Host e2-bastion.mycompany.com
HostName 18.184.134.63
ForwardAgent yes
User ec2-user
# DynamicForward 8080
LocalForward 8080 localhost:8080
LocalForward 5432 e2-prod-rds.cudzn6tywww1.eu-central-1.rds.amazonaws.com:5432
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.prod.id_rsa
# The very first iTV customer
Host ajtivi.frankfurt 10.231.101.229
HostName 10.231.101.229
ForwardAgent yes
User centos
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/prod.ajtivi.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.mycompany.com
# The second iTV customer named as iTV1
Host ajtivi1.frankfurt 10.231.101.209
HostName 10.231.101.209
ForwardAgent yes
User centos
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/prod.ajtivi.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.mycompany.com
Host ip-10-231-101-102.eu-central-1.compute.internal
HostName 10.231.101.102
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.prod.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.mycompany.com
Host ip-10-231-102-195.eu-central-1.compute.internal
HostName 10.231.102.195
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.prod.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.mycompany.com
Host ip-10-231-103-16.eu-central-1.compute.internal
HostName 10.231.103.16
ForwardAgent yes
User ec2-user
Port 22
AddKeysToAgent yes
IdentitiesOnly yes
IdentityFile /home/username/.ssh/bastion.prod.id_rsa
ProxyCommand ssh -q -W %h:%p e2-bastion.mycompany.com