mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-21 19:11:30 +01:00
prevent install from nuking the ssh config
This commit is contained in:
parent
4d64de1fa4
commit
0663467577
18
install.sh
18
install.sh
|
@ -87,28 +87,32 @@ function create_ssh_config {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec 3>&1 # save stdout file descriptor
|
exec 3>&1 # save stdout file descriptor
|
||||||
exec 1>$ssh_config # redirect everything below to the $ssh_config file
|
exec 1>>$ssh_config # redirect everything below to the $ssh_config file
|
||||||
if [[ "$modifyssh" != "n" ]]
|
if [[ "$modifyssh" != "n" ]]
|
||||||
then
|
then
|
||||||
echo "# brethil's dotfiles setup start"
|
echo "# brethil's dotfiles setup start"
|
||||||
echo 'TCPKeepAlive=yes'
|
echo 'TCPKeepAlive=yes'
|
||||||
echo 'ServerAliveCountMax=6'
|
echo 'ServerAliveCountMax=6'
|
||||||
|
echo
|
||||||
echo "## Uncomment to enable compression for all ssh sessions"
|
echo "## Uncomment to enable compression for all ssh sessions"
|
||||||
echo '#Compression=yes'
|
echo '#Compression=yes'
|
||||||
|
echo
|
||||||
echo '## Uncomment the following to enable ssh ControlMaster and ssh session persistence'
|
echo '## Uncomment the following to enable ssh ControlMaster and ssh session persistence'
|
||||||
echo '#ControlMaster auto'
|
echo '#ControlMaster auto'
|
||||||
echo '#ControlPath /tmp/%r@%h:%p'
|
echo '#ControlPath /tmp/%r@%h:%p'
|
||||||
echo '#ControlPersist yes'
|
echo '#ControlPersist yes'
|
||||||
|
echo
|
||||||
echo 'Host *'
|
echo 'Host *'
|
||||||
echo 'ServerAliveInterval 300'
|
echo ' ServerAliveInterval 300'
|
||||||
|
echo
|
||||||
echo '## Enable the following if you want to use the rmate textmate remote'
|
echo '## Enable the following if you want to use the rmate textmate remote'
|
||||||
echo "#Host *"
|
echo "#Host *"
|
||||||
echo "#RemoteForward 52698 localhost:52698"
|
echo "# RemoteForward 52698 localhost:52698"
|
||||||
|
echo
|
||||||
echo '## Enable the following if you want to use a reverse ssh tunnel to use mecp command on remote hosts'
|
echo '## Enable the following if you want to use a reverse ssh tunnel to use mecp command on remote hosts'
|
||||||
echo "Host *"
|
echo "#Host *"
|
||||||
echo "Remoteforward 2222 localhost:22"
|
echo "# Remoteforward 2222 localhost:22"
|
||||||
|
echo
|
||||||
echo '# end of brethil dotfiles setup #'
|
echo '# end of brethil dotfiles setup #'
|
||||||
|
|
||||||
exec 1>&3 # restore stdout
|
exec 1>&3 # restore stdout
|
||||||
|
|
Loading…
Reference in New Issue
Block a user