Have created set of files

test1, test2, test3

the above files are on different server name xyz.com   

If at all i need to rename the files with prefix 

```
ex: test1 > old_test1
    test2 > old_test2
    test3 > old_test3

```

I tried:

```
#!/bin/bash
ssh $xyz.com -t -t /bin/bash <<EOF
cd /tmp
for i in {test*}
    do
    mv -v {i} "{i/test/old_test}"
    ls -ltr
    done
exit

```

but the output is just mv -v followed by list of files and nothing is happening (rename).