Estou usando o pscp para transferir arquivos do meu computador para um servidor windows, mas ele não funciona.
aqui está o comando que estou usando e o resultado
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
LOGIN@HOST_ADDRESS's password:
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
E então nada. O que eu fiz errado ?
windows
windows-server-2008
scp
pscp
user361700
fonte
fonte
Respostas:
Seu shell de login provavelmente está retornando a saída, o que interrompe o scp.
fonte