added some ssh stuff, updated bootstrap to copy the new files, changed my email so github stuff works

moveTools
Adam Veldhousen 2015-06-20 16:21:41 -05:00
parent 3df045d687
commit c06d259a30
3 changed files with 18 additions and 1 deletions

View File

@ -135,7 +135,7 @@
[pull] [pull]
default = current default = current
[user] [user]
email = adam.veldhousen@mtmrecognition.com email = adam@veldhousen.ninja
name = Adam Veldhousen name = Adam Veldhousen
signingkey = 415C0B9C signingkey = 415C0B9C
[commit] [commit]

13
.ssh/config Normal file
View File

@ -0,0 +1,13 @@
# some commonly set options
Host *
LogLevel INFO #verbosity used when logging messages from ssh, QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, DEBUG3
StrictHostKeyChecking ask #if YES, never auto add host keyes and refuses to connecto to hosts that have changed. YES, NO, ASK
UserKnownHostsFile ~/.ssh/known_hosts #known hosts file database location
ServerAliveInterval 30 # timeout in seconds after which if no data has been recieved from the server, ssh will send a keep alive message
ServerAliveCountMax 120 # the number of times to send a keep alive message in a row, only applies to ssh v2
VisualHostKey yes #Shows the ssh key image on connection. YES or NO
Compression no #if the connection should compress. YES or NO
PasswordAuthentication yes #If ssh should use password auth. YES or NO
PreferredAuthentications publickey #allows ssh to prefer one method of auth over another if there are multiple methods available. gssapi-with-mic, hostbased, publickey, keyboard-interactive, password
TCPKeepAlive yes #send TCP keep alive messages to the host, which lets us know if the connection dies, but it can give false negatives (if the connection goes down temporarily, you'll get disconnected). YES, NO

View File

@ -12,6 +12,9 @@ rm -rf ${bkup}
mkdir -p ${bkup} mkdir -p ${bkup}
IFS=$'\n' IFS=$'\n'
if [[ -f ${dest}/.ssh/config ]]; then
cp "${dest}/.ssh/config" "${bkup}/.ssh/config"
fi
for file in $(ls -lA "${source}" | grep "^-" | awk '{print $9}'); do for file in $(ls -lA "${source}" | grep "^-" | awk '{print $9}'); do
if [ -f "${dest}/${file}" ]; then if [ -f "${dest}/${file}" ]; then
cp -v "${dest}/${file}" "${bkup}/${file}" cp -v "${dest}/${file}" "${bkup}/${file}"
@ -30,6 +33,7 @@ cp -rs ${source}/tools ${dest}/tools
pushd ${dest} 2>&1 /dev/null pushd ${dest} 2>&1 /dev/null
echo "linking dotfiles from ${source} into ${dest}..." echo "linking dotfiles from ${source} into ${dest}..."
ls -lA "${source}" | grep "^-" | awk '{print $9}' | xargs -I file ln -vfs "${source}/file" "${dest}/file" ls -lA "${source}" | grep "^-" | awk '{print $9}' | xargs -I file ln -vfs "${source}/file" "${dest}/file"
cp "${source}/.ssh/config" "${dest}/.ssh/config"
#set +u #set +u
#curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash #curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash