Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I use PsExec through a SSH tunnel? I set up a loopback adapter to forward port 139 (so far so good), but when I want to forward port 445 I get an error:

bind() failed: Windows error 10013: An attempt was made to access a socket in a way forbidden by its access permissions.

share|improve this question
Is the SSH tunnel terminating at the Windows host you're trying to PSExec to? I get the same error using SSH tunneling for RDP. You need to SSH to a different host on the same network and then reach from it to the other. Windows gets angry when certain ports are connected to from –  Nathan V Nov 29 '12 at 4:48
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.