Score:0

scp from Windows Server to Unix server works but not the other way around

cn flag

I installed OpenSSH on my Windows Server machine to use SSH. To test this out, I ran this command from my windows server.

scp test.txt [email protected]:/path

Which worked, I can see the file on unix via putty. However, if I run this command on the unix server:

scp index.txt [email protected]:/path

It doesn't work. It hangs for a long time and eventually I get:

ssh: connect to host windowserver.company.com port 22: Connection timed out
lost connection
Michael Hampton avatar
cz flag
Check your firewall.
J.Do avatar
cn flag
@MichaelHampton I set a new Inbound rule for TCP port 22 but still doesn't work
in flag
Did you install OpenSSH as native Windows program or within a WSL1/WSL2 environment?
Score:1
us flag
  1. Make sure your firewall has the configured port open.
  2. Ensure the server is listening on the configured port. For example, if your server is configured to listen on port 22, run netstat -ano | findstr ":22"
  3. Make sure the traffic is allowed on any firewalls between the subnets if applicable.
  4. Microsoft's documentation is pretty good for OpenSSH. Particularly, check the steps here: https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse#start-and-configure-openssh-server
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.