Score:0

Can't scp from linux ubuntu server to local windows machine

us flag

I want to transfer a file from my remote linux ubuntu server to my local windows machine but it give me this error

ssh: Could not resolve hostname c: Temporary failure in name resolution

here is the command that I enter into my linux server command line

scp -r root@MY.LINUX.IP:/var/www/test.py C:/Users/test/Desktop/
us flag
shouldn't you be running that command on windows?
Score:2
cn flag

Since your windows machine is local and unreachable from the internet you must run the scp command on your windows machine, not on the remote host. If you are using wsl your C: drive will be available on /mnt/c DOS style paths wont work. Using WinSCP maybe easier in this case.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.