Adding teletype option to ssh
This commit is contained in:
parent
e6cf08c18c
commit
917f13d0e3
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ $full_script"
|
||||||
echo "$full_script" | ssh -q $host -p $port "tee run.sh" 1>/dev/null
|
echo "$full_script" | ssh -q $host -p $port "tee run.sh" 1>/dev/null
|
||||||
info "Transmitted script"
|
info "Transmitted script"
|
||||||
# Run and remove it.
|
# 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.
|
## Interactive shell does not work.
|
||||||
#ssh -t $host PASSWORD="$pswd" "bash -i run.sh && rm run.sh"
|
#ssh -t $host PASSWORD="$pswd" "bash -i run.sh && rm run.sh"
|
||||||
rm tmp.sh
|
rm tmp.sh
|
||||||
|
|
Loading…
Reference in a new issue