Is there a command parameter to specify the path for rz

509 views Asked by At

I use rz command in a ssh client to upload some files to my remote app server A. If I log in remote server A and currently am in path /home/xxx/. I want to upload a file to under path '/home/xxx/work'.So for rzcommand, is there a command parameter to specify the A's a path where the uploaded file will be put?

1

There are 1 answers

2
John Zwinck On

Use a compound command on the remote side:

ssh foo@bar "cd work && rz  ..."