rickhoro .
2014-08-11 16:09:58 UTC
I am trying to use the ANT SCP task to send a file to an Amazon EC2 host,
and get a reject host key error. I can use scp from the BASH command line,
but what appears to me to be the equivalent command sent through ANT fails.
Below are the two commands, including output from "verbose" settings.
Please, if anyone knows what the problem may be, I would appreciate some
help.
Software versions:
------------------------
Source host: Linux Mint 15
Java: Oracle Java 7
Eclipse: 4.3.2
ANT: 1.8.4
jsch: jsch-0.1.51.jar
Command Line: scp command: (Linux Mint to EC2 with Ubuntu)
---------------------------------------------------------------------------------
scp -i /home/rick/PTflixAWS/PTflixVideoCompressor.pem -vv
/home/rick/temp/testCC.html ***@compress.ptflix.com:.
Output:
----------
Executing: program /usr/bin/ssh host compress.ptflix.com, user ubuntu,
command scp -v -t .
OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to compress.ptflix.com [54.191.239.153] port 22.
debug1: Connection established.
debug1: identity file /home/rick/PTflixAWS/PTflixVideoCompressor.pem type -1
debug1: identity file /home/rick/PTflixAWS/PTflixVideoCompressor.pem-cert
type -1
debug1: Remote protocol version 2.0, remote software version
OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.1p1 Debian-4
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit:
ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ecdsa-sha2-nistp256-cert-***@openssh.com,
ecdsa-sha2-nistp384-cert-***@openssh.com,
ecdsa-sha2-nistp521-cert-***@openssh.com
,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
ssh-rsa-cert-***@openssh.com,ssh-dss-cert-***@openssh.com,
ssh-rsa-cert-***@openssh.com,ssh-dss-cert-***@openssh.com,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-***@lysator.liu.se
debug2: kex_parse_kexinit:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-***@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-***@openssh.com
,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-***@openssh.com
,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-***@openssh.com
,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-***@openssh.com
,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,***@openssh.com,zlib
debug2: kex_parse_kexinit: none,***@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: curve25519-***@libssh.org
,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
debug2: kex_parse_kexinit:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
aes128-***@openssh.com,aes256-***@openssh.com,chacha20-***@openssh.com
,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-***@lysator.liu.se
debug2: kex_parse_kexinit:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
aes128-***@openssh.com,aes256-***@openssh.com,chacha20-***@openssh.com
,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-***@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5-***@openssh.com,
hmac-sha1-***@openssh.com,umac-64-***@openssh.com,umac-128-***@openssh.com,
hmac-sha2-256-***@openssh.com,hmac-sha2-512-***@openssh.com,
hmac-ripemd160-***@openssh.com,hmac-sha1-96-***@openssh.com,
hmac-md5-96-***@openssh.com,hmac-md5,hmac-sha1,umac-***@openssh.com,
umac-***@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
hmac-***@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5-***@openssh.com,
hmac-sha1-***@openssh.com,umac-64-***@openssh.com,umac-128-***@openssh.com,
hmac-sha2-256-***@openssh.com,hmac-sha2-512-***@openssh.com,
hmac-ripemd160-***@openssh.com,hmac-sha1-96-***@openssh.com,
hmac-md5-96-***@openssh.com,hmac-md5,hmac-sha1,umac-***@openssh.com,
umac-***@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
hmac-***@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,***@openssh.com
debug2: kex_parse_kexinit: none,***@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA
f1:bd:80:44:39:37:c6:cb:a1:aa:34:89:d2:8a:20:4d
debug1: Host 'compress.ptflix.com' is known and matches the ECDSA host key.
debug1: Found key in /home/rick/.ssh/known_hosts:10
debug1: ssh_ecdsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/rick/PTflixAWS/PTflixVideoCompressor.pem ((nil))
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/rick/PTflixAWS/PTflixVideoCompressor.pem
debug1: read PEM private key done: type RSA
debug2: we sent a publickey packet, wait for reply
debug1: Authentication succeeded (publickey).
Authenticated to compress.ptflix.com ([54.191.239.153]:22).
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting no-more-***@openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug2: client_session2_setup: id 0
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug1: Sending command: scp -v -t .
debug2: channel 0: request exec confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: exec request accepted on channel 0
Sending file modes: C0644 425 testCC.html
debug2: channel 0: rcvd ext data 28
Sink: C0644 425 testCC.html
debug2: channel 0: written 28 to efd 6
testCC.html
100% 425 0.4KB/s 00:00
debug2: channel 0: read<=0 rfd 4 len 0
debug2: channel 0: read failed
debug2: channel 0: close_read
debug2: channel 0: input open -> drain
debug2: channel 0: ibuf empty
debug2: channel 0: send eof
debug2: channel 0: input drain -> closed
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug2: channel 0: rcvd close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 2768, received 2344 bytes, in 0.6 seconds
Bytes per second: sent 4985.1, received 4221.5
debug1: Exit status 0
ANT scp task:
------------------
<target name="deploy-script-remote">
<scp verbose="true"
todir="***@compress.ptflix.com:."
keyfile="/home/rick/PTflixAWS/PTflixVideoCompressor.pem">
<fileset dir="/home/rick/temp" includes="testCC.html" />
</scp>
</target>
Output:
----------
Buildfile: /home/rick/workspace/PTflixCompressor/build-dist.xml
deploy-script-remote:
[scp] Connecting to compress.ptflix.com:22
[scp] Connecting to compress.ptflix.com port 22
[scp] Connection established
[scp] Remote version string: SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
[scp] Local version string: SSH-2.0-JSCH-0.1.51
[scp] CheckCiphers:
aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
[scp] aes256-cbc is not available.
[scp] aes192-cbc is not available.
[scp] CheckKexes: diffie-hellman-group14-sha1
[scp] diffie-hellman-group14-sha1 is not available.
[scp] SSH_MSG_KEXINIT sent
[scp] SSH_MSG_KEXINIT received
[scp] kex: server: curve25519-***@libssh.org
,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
[scp] kex: server: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
[scp] kex: server:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
aes128-***@openssh.com,aes256-***@openssh.com,chacha20-***@openssh.com
,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-***@lysator.liu.se
[scp] kex: server:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
aes128-***@openssh.com,aes256-***@openssh.com,chacha20-***@openssh.com
,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-***@lysator.liu.se
[scp] kex: server: hmac-md5-***@openssh.com,hmac-sha1-***@openssh.com,
umac-64-***@openssh.com,umac-128-***@openssh.com,
hmac-sha2-256-***@openssh.com,hmac-sha2-512-***@openssh.com,
hmac-ripemd160-***@openssh.com,hmac-sha1-96-***@openssh.com,
hmac-md5-96-***@openssh.com,hmac-md5,hmac-sha1,umac-***@openssh.com,
umac-***@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
hmac-***@openssh.com,hmac-sha1-96,hmac-md5-96
[scp] kex: server: hmac-md5-***@openssh.com,hmac-sha1-***@openssh.com,
umac-64-***@openssh.com,umac-128-***@openssh.com,
hmac-sha2-256-***@openssh.com,hmac-sha2-512-***@openssh.com,
hmac-ripemd160-***@openssh.com,hmac-sha1-96-***@openssh.com,
hmac-md5-96-***@openssh.com,hmac-md5,hmac-sha1,umac-***@openssh.com,
umac-***@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
hmac-***@openssh.com,hmac-sha1-96,hmac-md5-96
[scp] kex: server: none,***@openssh.com
[scp] kex: server: none,***@openssh.com
[scp] kex: server:
[scp] kex: server:
[scp] kex: client:
diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1
[scp] kex: client: ssh-rsa,ssh-dss
[scp] kex: client:
aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
[scp] kex: client:
aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
[scp] kex: client:
hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
[scp] kex: client:
hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
[scp] kex: client: none
[scp] kex: client: none
[scp] kex: client:
[scp] kex: client:
[scp] kex: server->client aes128-ctr hmac-md5 none
[scp] kex: client->server aes128-ctr hmac-md5 none
[scp] SSH_MSG_KEXDH_INIT sent
[scp] expecting SSH_MSG_KEXDH_REPLY
[scp] ssh_rsa_verify: signature true
[scp] Disconnecting from compress.ptflix.com port 22
BUILD FAILED
/home/rick/workspace/PTflixCompressor/build-dist.xml:178:
com.jcraft.jsch.JSchException: reject HostKey: compress.ptflix.com
Thanks,
Rick
and get a reject host key error. I can use scp from the BASH command line,
but what appears to me to be the equivalent command sent through ANT fails.
Below are the two commands, including output from "verbose" settings.
Please, if anyone knows what the problem may be, I would appreciate some
help.
Software versions:
------------------------
Source host: Linux Mint 15
Java: Oracle Java 7
Eclipse: 4.3.2
ANT: 1.8.4
jsch: jsch-0.1.51.jar
Command Line: scp command: (Linux Mint to EC2 with Ubuntu)
---------------------------------------------------------------------------------
scp -i /home/rick/PTflixAWS/PTflixVideoCompressor.pem -vv
/home/rick/temp/testCC.html ***@compress.ptflix.com:.
Output:
----------
Executing: program /usr/bin/ssh host compress.ptflix.com, user ubuntu,
command scp -v -t .
OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to compress.ptflix.com [54.191.239.153] port 22.
debug1: Connection established.
debug1: identity file /home/rick/PTflixAWS/PTflixVideoCompressor.pem type -1
debug1: identity file /home/rick/PTflixAWS/PTflixVideoCompressor.pem-cert
type -1
debug1: Remote protocol version 2.0, remote software version
OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.1p1 Debian-4
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit:
ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ecdsa-sha2-nistp256-cert-***@openssh.com,
ecdsa-sha2-nistp384-cert-***@openssh.com,
ecdsa-sha2-nistp521-cert-***@openssh.com
,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
ssh-rsa-cert-***@openssh.com,ssh-dss-cert-***@openssh.com,
ssh-rsa-cert-***@openssh.com,ssh-dss-cert-***@openssh.com,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-***@lysator.liu.se
debug2: kex_parse_kexinit:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-***@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-***@openssh.com
,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-***@openssh.com
,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-***@openssh.com
,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-***@openssh.com
,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,***@openssh.com,zlib
debug2: kex_parse_kexinit: none,***@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: curve25519-***@libssh.org
,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
debug2: kex_parse_kexinit:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
aes128-***@openssh.com,aes256-***@openssh.com,chacha20-***@openssh.com
,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-***@lysator.liu.se
debug2: kex_parse_kexinit:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
aes128-***@openssh.com,aes256-***@openssh.com,chacha20-***@openssh.com
,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-***@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5-***@openssh.com,
hmac-sha1-***@openssh.com,umac-64-***@openssh.com,umac-128-***@openssh.com,
hmac-sha2-256-***@openssh.com,hmac-sha2-512-***@openssh.com,
hmac-ripemd160-***@openssh.com,hmac-sha1-96-***@openssh.com,
hmac-md5-96-***@openssh.com,hmac-md5,hmac-sha1,umac-***@openssh.com,
umac-***@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
hmac-***@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5-***@openssh.com,
hmac-sha1-***@openssh.com,umac-64-***@openssh.com,umac-128-***@openssh.com,
hmac-sha2-256-***@openssh.com,hmac-sha2-512-***@openssh.com,
hmac-ripemd160-***@openssh.com,hmac-sha1-96-***@openssh.com,
hmac-md5-96-***@openssh.com,hmac-md5,hmac-sha1,umac-***@openssh.com,
umac-***@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
hmac-***@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,***@openssh.com
debug2: kex_parse_kexinit: none,***@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA
f1:bd:80:44:39:37:c6:cb:a1:aa:34:89:d2:8a:20:4d
debug1: Host 'compress.ptflix.com' is known and matches the ECDSA host key.
debug1: Found key in /home/rick/.ssh/known_hosts:10
debug1: ssh_ecdsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/rick/PTflixAWS/PTflixVideoCompressor.pem ((nil))
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/rick/PTflixAWS/PTflixVideoCompressor.pem
debug1: read PEM private key done: type RSA
debug2: we sent a publickey packet, wait for reply
debug1: Authentication succeeded (publickey).
Authenticated to compress.ptflix.com ([54.191.239.153]:22).
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting no-more-***@openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug2: client_session2_setup: id 0
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug1: Sending command: scp -v -t .
debug2: channel 0: request exec confirm 1
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: exec request accepted on channel 0
Sending file modes: C0644 425 testCC.html
debug2: channel 0: rcvd ext data 28
Sink: C0644 425 testCC.html
debug2: channel 0: written 28 to efd 6
testCC.html
100% 425 0.4KB/s 00:00
debug2: channel 0: read<=0 rfd 4 len 0
debug2: channel 0: read failed
debug2: channel 0: close_read
debug2: channel 0: input open -> drain
debug2: channel 0: ibuf empty
debug2: channel 0: send eof
debug2: channel 0: input drain -> closed
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug2: channel 0: rcvd close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
Transferred: sent 2768, received 2344 bytes, in 0.6 seconds
Bytes per second: sent 4985.1, received 4221.5
debug1: Exit status 0
ANT scp task:
------------------
<target name="deploy-script-remote">
<scp verbose="true"
todir="***@compress.ptflix.com:."
keyfile="/home/rick/PTflixAWS/PTflixVideoCompressor.pem">
<fileset dir="/home/rick/temp" includes="testCC.html" />
</scp>
</target>
Output:
----------
Buildfile: /home/rick/workspace/PTflixCompressor/build-dist.xml
deploy-script-remote:
[scp] Connecting to compress.ptflix.com:22
[scp] Connecting to compress.ptflix.com port 22
[scp] Connection established
[scp] Remote version string: SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
[scp] Local version string: SSH-2.0-JSCH-0.1.51
[scp] CheckCiphers:
aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,3des-ctr,arcfour,arcfour128,arcfour256
[scp] aes256-cbc is not available.
[scp] aes192-cbc is not available.
[scp] CheckKexes: diffie-hellman-group14-sha1
[scp] diffie-hellman-group14-sha1 is not available.
[scp] SSH_MSG_KEXINIT sent
[scp] SSH_MSG_KEXINIT received
[scp] kex: server: curve25519-***@libssh.org
,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
[scp] kex: server: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
[scp] kex: server:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
aes128-***@openssh.com,aes256-***@openssh.com,chacha20-***@openssh.com
,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-***@lysator.liu.se
[scp] kex: server:
aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
aes128-***@openssh.com,aes256-***@openssh.com,chacha20-***@openssh.com
,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
rijndael-***@lysator.liu.se
[scp] kex: server: hmac-md5-***@openssh.com,hmac-sha1-***@openssh.com,
umac-64-***@openssh.com,umac-128-***@openssh.com,
hmac-sha2-256-***@openssh.com,hmac-sha2-512-***@openssh.com,
hmac-ripemd160-***@openssh.com,hmac-sha1-96-***@openssh.com,
hmac-md5-96-***@openssh.com,hmac-md5,hmac-sha1,umac-***@openssh.com,
umac-***@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
hmac-***@openssh.com,hmac-sha1-96,hmac-md5-96
[scp] kex: server: hmac-md5-***@openssh.com,hmac-sha1-***@openssh.com,
umac-64-***@openssh.com,umac-128-***@openssh.com,
hmac-sha2-256-***@openssh.com,hmac-sha2-512-***@openssh.com,
hmac-ripemd160-***@openssh.com,hmac-sha1-96-***@openssh.com,
hmac-md5-96-***@openssh.com,hmac-md5,hmac-sha1,umac-***@openssh.com,
umac-***@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
hmac-***@openssh.com,hmac-sha1-96,hmac-md5-96
[scp] kex: server: none,***@openssh.com
[scp] kex: server: none,***@openssh.com
[scp] kex: server:
[scp] kex: server:
[scp] kex: client:
diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1
[scp] kex: client: ssh-rsa,ssh-dss
[scp] kex: client:
aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
[scp] kex: client:
aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc
[scp] kex: client:
hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
[scp] kex: client:
hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96
[scp] kex: client: none
[scp] kex: client: none
[scp] kex: client:
[scp] kex: client:
[scp] kex: server->client aes128-ctr hmac-md5 none
[scp] kex: client->server aes128-ctr hmac-md5 none
[scp] SSH_MSG_KEXDH_INIT sent
[scp] expecting SSH_MSG_KEXDH_REPLY
[scp] ssh_rsa_verify: signature true
[scp] Disconnecting from compress.ptflix.com port 22
BUILD FAILED
/home/rick/workspace/PTflixCompressor/build-dist.xml:178:
com.jcraft.jsch.JSchException: reject HostKey: compress.ptflix.com
Thanks,
Rick