Adding git and ssh

This commit is contained in:
Gerardo J. Puerta 2022-09-06 14:55:41 -05:00
parent d58bdbcb83
commit 14c4476c79
4 changed files with 137 additions and 3 deletions

17
git/gitconfig Normal file
View File

@ -0,0 +1,17 @@
[http]
sslVerify = false
[user]
name = Gerardo J. Puerta
email = gerardo@gnuardo.com
[core]
editor = vim
[color]
status = auto
branch = auto
interactive = auto
diff = auto
[push]
default = simple
[credential]
helper = /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret

View File

@ -51,9 +51,27 @@ then
echo "Installing starship ..." echo "Installing starship ..."
curl -sS https://starship.rs/install.sh | sh curl -sS https://starship.rs/install.sh | sh
fi fi
echo "Installing starship configuration ..."
rm -rf ~/.config/starship.toml if [[ -f ~/.dotfiles/starship/starship.toml ]]
ln -sf ~/.dotfiles/starship/starship.toml ~/.config/starship.toml then
echo "Installing starship configuration ..."
rm -rf ~/.config/starship.toml
ln -sf ~/.dotfiles/starship/starship.toml ~/.config/starship.toml
fi
if [[ -f ~/.dotfiles/git/gitconfig ]]
then
echo "Installing git configuration ..."
rm -rf ~/.gitconfig
ln -sf ~/.dotfiles/git/gitconfig ~/.gitconfig
fi
if [[ -f ~/.dotfiles/ssh ]]
then
echo "Installing ssh configuration ..."
rm -rf ~/.ssh
ln -sf ~/.dotfiles/ssh ~/.ssh
fi
. ~/.bashrc . ~/.bashrc

72
ssh/config Normal file
View File

@ -0,0 +1,72 @@
Host icinga
Hostname tpa-es-deb-242.prod.sipstorm.com
User root
Host dev-hub
HostName 192.168.1.216
Host dev-hub1
HostName 192.168.2.103
Host prod-hub
HostName 192.168.1.100
Host qa-hub
HostName 192.168.1.237
Host hub
HostName 96.31.61.187
Port 444
User pi
Host rcp
Hostname cloud.hub.remotecarepartners.com
IdentityFile ~/.ssh/rcp.pem
User ec2-user
# LocalForward 5032 dev-hubdb.c88fiohchpb5.us-east-2.rds.amazonaws.com:5432
#LocalForward 5132 awspx-rdspg-00.c88fiohchpb5.us-east-2.rds.amazonaws.com:5432
# LocalForward 33306 awspx-rdsmy-00.c88fiohchpb5.us-east-2.rds.amazonaws.com:3306
Host rssh
Hostname rssh.remotecarepartners.com
IdentityFile ~/.ssh/rcp.pem
User ec2-user
Host ec22
Hostname ec2-3-132-28-187.us-east-2.compute.amazonaws.com
IdentityFile ~/.ssh/rcp.pem
User ec2-user
LocalForward 9201 localhost:9201
Host funtoo
HostName gnuardo.host.funtoo.org
Port 444
User root
DynamicForward 7777
Host altais
User root
Host th
Hostname 192.168.88.10
IdentityFile ~/.ssh/iotenoclink_luser
User luser
Host lth
Hostname 192.168.188.10
IdentityFile ~/.ssh/iotenoclink_luser
User luser
Host home
Hostname home.gnuardo.com
User gerardo
Host hubbuilder
Hostname ec2-18-188-42-237.us-east-2.compute.amazonaws.com
User ubuntu
IdentityFile ~/.ssh/hubbuilder.pem
Host kc
HostName 96.31.61.187
Port 444
User pi

27
ssh/hub_root Normal file
View File

@ -0,0 +1,27 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABFwAAAAdzc2gtcn
NhAAAAAwEAAQAAAQEAsJA0dHsVoRDShx4lMzERKgQ3hQLiKRslUUs1qOyt+rt350KYLJUK
GHJOkGH+EZnN2n0DIG87ZBhsTI1QCnueggOuWr2GSQOkklVulz98vYq/+amy28/oNWLZ29
x42W5HtOSzDA1tbNniLCEwIj/jHcijZzXL917oP/8wfwrK22XIUfDc/WQZEW9NYTctaoNJ
70xda04CH1wDiRZ5DofBMCk+B4ZKcs8WZZ27acFPbqdbPY4AT0tSc/6C/SmrkgnUM8Md1y
PBpoN4CvXNLVGoUb0MHvxDAH1wNVKlr7PRFqmDiQbz3WwAAAimIOFFzkhszlXzhO8+PqMi
n4wanIGEfQAAA8hC9ro9Qva6PQAAAAdzc2gtcnNhAAABAQCwkDR0exWhENKHHiUzMREqBD
eFAuIpGyVRSzWo7K36u3fnQpgslQoYck6QYf4Rmc3afQMgb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