I’m using putty from my win local machine to connect to the server, and so far what I’ve done is simply selecting text from putty terminal and pasting it into a text editor on my local machine and after editing I just paste it back to nano on the server. I could do that because all the text files I was editing were pretty short, but this config that I want to edit is longer, so I would need to scroll to select all the text from the nano, but that is not possible from the putty (as far as I know), and copying within nano doesnt seem to share the clipboard from server to local machine.
So I’m looking for a better way to do it, but something simple, quick and dirty.
Seeing as you’re using Putty, I guess it’s safe to assume that remote is Linux and local is windows?
In that case, use scp (winscp, filezilla, or one of the many other alternatives. Many FTP client have baked in support for scp).It runs over the ssh protocol, so your remote machine already supports it.
Yeah remote is Linux.
Thanks, that works, and it’s pretty easy. Also I just found out that Putty comes with scp (pscp), so that’s pretty neat too.
The quickest and dirtiest and least secure way to copy text (or files) between machines is using netcat. I always end up resorting to this method when in a hurry.