KpyM Telnet/SSH Server - Forum
scp cmd not working
Omri scp cmd not working
 
Hi,

I have an issue when trying to use the scp command to copy files from and to a remove 2012 R2 server.
When using WinSCP to that server the copy works but has an error regarding timestamps ()

When using the scp command with the debug switch I get the following:
-------------------------------------------------

# scp -v <User>@<HostIP>:tst.txt ./
Executing: program /usr/bin/ssh host <HostIP>, user <User>, command scp -v -f tst.txt
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to <HostIP> [<HostIP>] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /home/admin/.ssh/identity type -1
debug1: identity file /home/admin/.ssh/id_rsa type 1
debug1: identity file /home/admin/.ssh/id_dsa type -1
debug1: loaded 3 keys
debug1: Remote protocol version 2.0, remote software version cryptlib
debug1: no match: cryptlib
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client 3des-cbc hmac-md5 none
debug1: kex: client->server 3des-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<2048<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '<HostIP>' is known and matches the RSA host key.
debug1: Found key in /home/admin/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/admin/.ssh/identity
debug1: Offering public key: /home/admin/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending command: scp -v -f tst.txt
Sink:

# debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status -1

--------------------------------------

And on the kts-log.txt log file:

2912 : 3200 2014- 9-18 13:34:43 739 : 0: KTS connected to <SourceIP>:58402
3784 : 2100 2014- 9-18 13:34:43 817 : 0: session.exe started
3784 : 2100 2014- 9-18 13:34:43 910 : 0: connected to <SourceIP>:58402
3784 : 2100 2014- 9-18 13:34:45 4 : 0: ssh initialized
3784 : 2100 2014- 9-18 13:34:45 332 : 0: doing publickey authentication
3784 : 2100 2014- 9-18 13:34:45 332 : 0: login accepted: [ <User> ]
3784 : 2100 2014- 9-18 13:34:45 473 : 0: ssh info: Remote system closed last remaining SSH channel
3784 : 2100 2014- 9-18 13:34:45 473 : 0: shutdown session
3784 : 3060 2014- 9-18 13:34:45 473 : 0: session.exe end

-------------------------------------------------

Please let me know what I can do about this.
Thanks.


Kroum Grigorov
 
scp is not supported


Kroum


 

© 2007 - 2008 Kroum Grigorov
Powered by phpBB © 2001, 2005 phpBB Group