sftp - shell

sftp - shell

Hello list,

I use lasso 8.6 on a macosX server and I'm trying to upload a file to a remote server. This server works with a rsa key, so I'm trying to do this with a shell command, but I keep getting an error: No such file or directory

This is what I have:
[shell:'scp IdentityFile=/Users/username/.ssh/id_rsa userforftp@sftp.someserver.nl:/Import/test /Library/WebServer/Documents/mysite/dir_xml/order_test.xml']