still kind of a stealthy love ninja (
zvi) wrote in
dw_dev_training2009-09-30 08:13 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
Entry tags:
Extremely naive question about working with SSH
Okay, when I have a patchfile on my dreamhack, how do I get it out of my dreamhack?
That is to say, when people have asked me to pastebin a file to them, I've been running less on the file, copying each screen, and adding them all together until they make the whole file and then posting it to pastebin.
I know this doesn't transfer files with 100% accuracy to pastebin, but it's usually good enough. However, there has to be a better way to get a file off the dreamhack and onto my local computer, so I can upload it to bugzilla. I just can't, for the life of me, figure out what that better way might be.
That is to say, when people have asked me to pastebin a file to them, I've been running less on the file, copying each screen, and adding them all together until they make the whole file and then posting it to pastebin.
I know this doesn't transfer files with 100% accuracy to pastebin, but it's usually good enough. However, there has to be a better way to get a file off the dreamhack and onto my local computer, so I can upload it to bugzilla. I just can't, for the life of me, figure out what that better way might be.
no subject
no subject
no subject
I don't use sshfs as suggested by some commenters, mostly because I'd probably forget to unmount it or something and then if I mounted it in the wrong place updatedb would start indexing it next morning. ;p What I actually tend to do is either scp or a combination of ssh+tar, such as:
ssh dh-sophie@hack.dreamwidth.net "cd somedir; tar zc *" | tar zxv
I do this when I need to transfer multiple files. since I've found scp to be abysmally slow at that, if there are a lot of files, even with compression on.
Hope that helps. :)