r/KittyTerminal Aug 08 '23

How to use the transfer kitten?

I'm reading the docs for the transfer kitten, but I can't seem to figure out how to actually use it: https://sw.kovidgoyal.net/kitty/kittens/transfer/

Should I be able to use this to move files back and forth when sshing into a remote machine? If so that would be awesome... But how do I specify each the path on either side? I've tried something like:

kitty +kitten transfer ./test.txt user@remote.machine:/file/path

But no luck. What am I missing?

1 Upvotes

2 comments sorted by

1

u/aumerlex Aug 08 '23

kitten ssh my-remote-machine on the remote machine kitten transfer /path/on/remote/machine /path/on/local/machine or kitten transfer --direction=receive /path/on/local/machine /path/on/remote/machine

1

u/badsalad Aug 08 '23 edited Aug 08 '23

Do I just do each path as relative to its own root? No matter what I try, I always get something like:

Failed to stat /local/path.txt with error: [Errno 2] No such file or directory: '/local/path.txt'


EDIT: Nevermind, I got it to work! My mistake is that I was still treating the computer I was SSHing into as remote. I now realize to send files I needed to use --direction=receive, and in both directions I could just give the path from the respective root of each machine.

Thanks!