I would like to be able to use SCP to copy files from a Pi to Win 7 machine. However, it has to work in a script running on the Pi. The problem is that I cannot establish a connection from the Pi to Win via SSH (the reverse can be done, obviously, but it's not what I need).

I read somewhere that a SSH server has to run on my windows machine to get this to work. I have WinSCP installed, is that enough? When I run in Pi command line:

scp filename [email protected]:C 

I get an error

ssh: connect to host ... port 22: Connection refused.

1 Answer 1


No version of the Windows operating system includes an SSH server as a part of its distribution. WinSCP (what you've installed) is only a client, not a server.

If you want to be able to access your Windows machine's files through SSH, you'll need to install a server. If you want access to a full bash command line, you'll need something like cygwin. If you just want an SFTP/FTP file server, something like FileZilla's server is probably enough.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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