diff --git a/sshukh.plugin.zsh b/sshukh.plugin.zsh index de1d92c..89161e0 100755 --- a/sshukh.plugin.zsh +++ b/sshukh.plugin.zsh @@ -14,8 +14,7 @@ # ------------------------------------------------------------------------------ sshukh () { - output=$(\ssh "$@" 2>&1) - echo $output + output=$(\ssh "$@" 2>&1 | tee /dev/tty) error=$(echo $output | tail -1) if [[ "$error" == "Host key verification failed."* ]]; then host=$(cut -d'@' -f2 <<< $1)