Reputation: 429
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 rz
command, is there a command parameter to specify the A's a path where the uploaded file will be put?
Upvotes: -1
Views: 577
Reputation: 249123
Use a compound command on the remote side:
ssh foo@bar "cd work && rz ..."
Upvotes: 0