0

I'm trying the following command from the Pi to the PC (169.254.112.124):

sftp pi@169.254.112.124:/C:/Users/Desktop/testtest.xml

But I get this error:

ssh: connect to host 169.254.112.124 port 22: Connection refused Couldn't read packet: Connection reset by peer

I've enabled the 22 port in the server (a Windows 10 PC) by allowing inbound and outbound connections through that port. Also, the firewall is off. Any suggestions?

  • Where in the manual did you find that command? Anyhow the question is not Pi specific. – joan Feb 24 at 13:21
  • what happens if you simply sftp pi@169.254.112.124 without the rest? – papatrexas Feb 24 at 13:28
  • @papatrexas II followed this tutorial docs.microsoft.com/es-es/windows-server/administration/openssh/… and I can get in, but it asks me a password and I don't know which one it is. Any idea? THANK YOU! – itd Feb 24 at 16:33
  • This is not a question belonging to Raspberry Pi. I don't believe that you will find much support here to configure a MS Windows PC. You should better ask at MS Windows forum. – Ingo Feb 24 at 19:37
  • "but it asks me a password and I don't know which one it is" - what are the choices? My guess is, you'll want the windows 10 users password - do you have a user named pi on windows 10, because that's the user you are trying to authenticate with – Jaromanda X Feb 25 at 0:32
0

I followed this tutorial in order to configure SSH in the Windows PC where the files are and then, in the Pi I did:

sftp user@169.254.112.124:/C:/Users/Desktop/testtest.xml

The user is the Windows user for login and the IP is the Windows IP too. Then, it asks me for a password and it's the login password to my Windows PC.

|improve this answer|||||
  • 1
    Please accept your own answer with a click on the tick on its left side. Only this will finish the question and it will not pop up again year for year. – Ingo Mar 4 at 20:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.