zvi: self-portrait: short, fat, black dyke in bunny slippers (Default)
still kind of a stealthy love ninja ([personal profile] zvi) wrote in [site community profile] dw_dev_training2009-09-30 08:13 pm
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.
whobutdrew: (Rational)

[personal profile] whobutdrew 2009-10-02 10:40 pm (UTC)(link)
While certainly not tech-flashy, when I'm working on ssh, I can use Ctrl-C to copy what is highlighted (it also kills whatever prog I'm in, unless its vim) and can then paste it into Windows. Going the othre way is easier - right-clicking in ssh pastes whats on the clipboard. Make sure you are already in Edit mode in vim, though.

Not as shiny as SCP or the like, but its quick and dirty.
pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)

[personal profile] pne 2009-10-05 11:15 am (UTC)(link)
Make sure you are already in Edit mode in vim, though.

It may also help to :set paste before pasting (and optionally :set nopaste afterwards), otherwise you might get vim's auto-indenting screwing with your already-indented code.