i want to execute shell script on remote server with in sftp session

Hi,

I want to execute shell script with in sftp session for remote server.

like i have a shell script test.sh that is on local server.i want to execute that script on remote server

sftp user@192.168.56.10
sftp> test.sh ---execute for remote server not for local server.

sftp oracle@192.168.56.101 << EOF
cd /home/ibney
test.sh # i want to execute this shell script on remote server
get *.*
exit
EOF

---------- Post updated at 06:24 AM ---------- Previous update was at 04:58 AM ----------

Please help to me for this problem

sftp ONLY moves files between servers. You can execute local (not remote ) procedures.

Can you not use ssh?

ssh remotenode  '/path/on/remote/node/test.sh'

hi,

But i don't have ssh access how to i can run script on remote server.Please
help me for this issue.I have to execute script on remote server within sftp session.

There is no secret hidden way to run scripts inside sftp that we're hiding from you.

It's really, genuinely not a shell.

You can't run scripts inside it.

Period.