bashrc: add sshscr

This commit is contained in:
Peter Cai 2021-02-17 21:18:05 +08:00
parent 715c8a3a34
commit 6cb8f7adff
1 changed files with 5 additions and 0 deletions

View File

@ -21,3 +21,8 @@ fi
# 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'\""
# SSH with automatic "screen"
function sshscr() {
ssh -t $@ screen -RR -d
}