mirror of
https://github.com/HerrCraziDev/dotfiles.git
synced 2026-04-20 14:34:21 +02:00
serial console in interactive mode, ssh aliases
This commit is contained in:
16
.aliases
16
.aliases
@@ -41,3 +41,19 @@ sm() {
|
||||
tmux new-window -n serial:$(basename ${@:-1}) sudo picocom --logfile $SERIAL_LOGS/serial-$(basename ${@:-1})-$(ls $SERIAL_LOGS/serial-*.log 2> /dev/null | wc -l).log --baud 921600 --parity n --databits 8 --stopbits 1 --flow n --escape z $@
|
||||
}
|
||||
|
||||
smi() {
|
||||
tmux rename-window "serial:$(basename ${@:-1})"
|
||||
sudo picocom --logfile $SERIAL_LOGS/serial-$(basename ${@:-1})-$(ls $SERIAL_LOGS/serial-*.log 2> /dev/null | wc -l).log --baud 921600 --parity n --databits 8 --stopbits 1 --flow n --escape z $@
|
||||
}
|
||||
|
||||
mgnt() {
|
||||
echo $1
|
||||
sshpass -p administrator ssh administrator@$1
|
||||
}
|
||||
|
||||
sumgnt() {
|
||||
#echo root@$1
|
||||
sshpass -p ekitool ssh root@$1 "${@:2}"
|
||||
}
|
||||
|
||||
alias shmgnt="sshpass -p ekitool ssh"
|
||||
|
||||
Reference in New Issue
Block a user