Adding teletype option to ssh

This commit is contained in:
Ad5001 2024-04-05 16:29:05 +02:00
parent e6cf08c18c
commit 917f13d0e3
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -76,7 +76,7 @@ $full_script"
echo "$full_script" | ssh -q $host -p $port "tee run.sh" 1>/dev/null
info "Transmitted script"
# Run and remove it.
ssh $host -p $port PASSWORD="$pswd" "bash run.sh && rm run.sh"
ssh -t $host -p $port PASSWORD="$pswd" "bash run.sh && rm run.sh"
## Interactive shell does not work.
#ssh -t $host PASSWORD="$pswd" "bash -i run.sh && rm run.sh"
rm tmp.sh