I am using pscp to transfer files from my computer to a windows server but it doesn't work.

here is the command I'm using and the result

pscp -v -scp file_test.txt LOGIN@HOST_ADDRESS:C:.\

Looking up host "HOST_ADDRESS"
Connecting to IP_ADDRESS port 22
Server version: SSH-2.0-OpenSSH_6.6
Using SSH protocol version 2
We claim version: SSH-2.0-PuTTY_Release_0.63
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange with hash SHA-256
Host key fingerprint is:
ssh-rsa *******************************************
Initialised AES-256 SDCTR client->server encryption
Initialised HMAC-SHA-256 client->server MAC algorithm
Initialised AES-256 SDCTR server->client encryption
Initialised HMAC-SHA-256 server->client MAC algorithm
Using username "LOGIN".
Attempting keyboard-interactive authentication
Server refused keyboard-interactive authentication
Sent password
Access granted
Opening session as main channel
Opened main channel
Started a shell/command
Using SCP1
Connected to HOST_ADDRESS
Microsoft Windows [Version 6.1.7601]
Sent EOF message

And then nothing. What did I do wrong ?

  • Why the "C:.\"?
    – mtak
    Aug 26, 2014 at 10:57
  • I tried many possibilites for the destination folder, this is just an exemple
    – user361700
    Aug 26, 2014 at 11:01

1 Answer 1


Your login shell is likely returning output, which breaks scp.

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.