Skip to content

Commit

Permalink
Put ssh config under version control
Browse files Browse the repository at this point in the history
  • Loading branch information
Zack Hsi committed Sep 4, 2015
1 parent 2b48be8 commit 460ca0a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ do
link_to=~/.$file
if [[ "$file" == "flake8" ]]; then
link_to=~/.config/flake8
elif [[ "$file" == "sshconfig" ]]; then
link_to=~/.ssh/config
fi

if [ ! -L $link_to ]; then
Expand Down
27 changes: 27 additions & 0 deletions sshconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Host gateway.ln
Hostname gateway.lyft.net
ProxyCommand none
GatewayPorts yes

Host *-prod
Hostname %huction-iad.lyft.net

# EC2 Instance ID
Host i-*
Hostname %h.lyft.net

Host *.lyft.me *.lm *.lyft.net *.ln *-prod i-*
ProxyCommand ssh gateway.ln "proxy-ec2 %h"
User zhsi
# For increased security, consider setting ForwardAgent to no
# and use the -A flag to set agent forwarding on a per connection basis
# when access to the local ssh agent is actually needed
# (eg when pushing to github).
ForwardAgent yes

Host *
KeepAlive yes
ServerAliveInterval 60
GSSAPIAuthentication no
ForwardAgent no
ForwardX11 no

0 comments on commit 460ca0a

Please sign in to comment.