ssh_init: Network error: Cannot assign requested address

user12799293 picture user12799293 · Jul 9, 2020 · Viewed 24.4k times · Source

I am trying to set up a connection and transfer files using putty on a windows 10 platform. I have verified that the default port in putty is 22. When I run the command in the command line to connect and transfer files though I get the above error. Any idea why this is or what I should do?

Answer

Martha picture Martha · Sep 4, 2020

Did you try:

pscp -P 22 c:\documents\foo.txt [email protected]:/tmp/foo