From 9a4e395b60c64ffae024b9a46667c2eb73feeccd Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Fri, 23 Feb 2024 16:51:59 -0800 Subject: [PATCH] Add ssh hack --- .bashrc | 5 +++-- ssh.conf | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 ssh.conf diff --git a/.bashrc b/.bashrc index 8dfa406..28bccad 100644 --- a/.bashrc +++ b/.bashrc @@ -1,5 +1,6 @@ source ~/.bashrc alias vim='vim -Nu <(curl 2>/dev/null https://git.lsit.ucsb.edu/scottwilliams/dotfiles/raw/branch/main/.vimrc)' alias tmux='tmux -f <(cat 2>/dev/null ~/.tmux.conf <(curl 2>/dev/null https://git.lsit.ucsb.edu/scottwilliams/dotfiles/raw/branch/main/.tmux.conf))' -alias "sudo"="sudo " -alias sudos='sudo su -c "bash --rcfile <(curl 2>/dev/null https://git.lsit.ucsb.edu/scottwilliams/dotfiles/raw/branch/main/.bashrc) "' \ No newline at end of file +alias ssh='ssh -F /dev/null /etc/ssh_config ~/.ssh/config <(curl 2>/dev/null https://git.lsit.ucsb.edu/scottwilliams/dotfiles/raw/branch/main/ssh.conf))' +alias sudo="sudo " +alias sudos='sudo su -c "bash --rcfile <(curl 2>/dev/null https://git.lsit.ucsb.edu/scottwilliams/dotfiles/raw/branch/main/.bashrc) "' diff --git a/ssh.conf b/ssh.conf new file mode 100644 index 0000000..e9f1279 --- /dev/null +++ b/ssh.conf @@ -0,0 +1,5 @@ +Host * + ForwardAgent yes + RemoteCommand /bin/bash --rcfile <(cat ~/.bashrc <(curl 2>/dev/null https://git.lsit.ucsb.edu/scottwilliams/dotfiles/raw/branch/main/.bashrc)) + RequestTTY yes +