bashrc: add sshtmp and moshtmp

This commit is contained in:
Peter Cai 2021-02-02 14:59:37 +08:00
parent 63696e5cbe
commit 9defd3807e
1 changed files with 5 additions and 0 deletions

View File

@ -16,3 +16,8 @@ fi
# Set TERM to screen-256color inside tmux
# (Needs tmux.conf changes)
[[ $TMUX != "" ]] && export TERM="screen-256color"
# SSH without checking or adding host keys to known_hosts
# Useful for cloud server rescue environment & installation
alias sshtmp="ssh -o 'UserKnownHostsFile /dev/null' -o 'StrictHostKeyChecking no'"
alias moshtmp="mosh --ssh=\"ssh -o 'UserKnownHostsFile /dev/null' -o 'StrictHostKeyChecking no'\""