this post was submitted on 24 Jun 2025
6 points (100.0% liked)

techsupport

2860 readers
16 users here now

The Lemmy community will help you with your tech problems and questions about anything here. Do not be shy, we will try to help you.

If something works or if you find a solution to your problem let us know it will be greatly apreciated.

Rules: instance rules + stay on topic

Partnered communities:

You Should Know

Reddit

Software gore

Recommendations

founded 2 years ago
MODERATORS
 

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.

top 3 comments
sorted by: hot top controversial new old
[–] neidu3@sh.itjust.works 5 points 6 days ago* (last edited 6 days ago) (1 children)

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.

[–] Wistful@discuss.tchncs.de 5 points 6 days ago

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.

[–] sefra1@lemmy.zip 1 points 6 days ago

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.