cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1639
Views
0
Helpful
1
Replies

SFTP into Cisco CSR EC2 instance is not succeeding

julietv9
Level 1
Level 1

Hello,

 

I have a EC2 Cisco CSR instance. I'm able to SSH into it successfully, however when I try to SFTP into it, I get a

"Connection to ec2-x-x-x-x.compute-1.amazonaws.com closed by remote host.
Connection to ec2-x-x-x-x.compute-1.amazonaws.com closed."

 

debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 56: Applying options for *
debug1: Connecting to ec2-x-x-x-x.compute-1.amazonaws.com [x.x.x.x] port 22.
debug1: Connection established.
debug1: identity file /tmp/PrivateKey4422.pem type -1
debug1: identity file /tmp/PrivateKey4422.pem-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
debug1: Remote protocol version 2.0, remote software version Cisco-1.25
debug1: match: Cisco-1.25 pat Cisco-* compat 0x20000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-sha1 none
debug1: kex: client->server aes128-ctr hmac-sha1 none
debug1: kex: diffie-hellman-group-exchange-sha1 need=20 dh_need=20
debug1: kex: diffie-hellman-group-exchange-sha1 need=20 dh_need=20
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<4096<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: Server host key: RSA x:x:x:x:x:x:x:x:x:x:x:x:x:x:x:x
debug1: Host 'ec2-x-x-x-x.compute-1.amazonaws.com' is known and matches the RSA host key.
debug1: Found key in /home/vanish/.ssh/known_hosts:35
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,keyboard-interactive,password
debug1: Next authentication method: publickey
debug1: Trying private key: /tmp/PrivateKey4422.pem
debug1: key_parse_private2: missing begin marker
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
Authenticated to ec2-x-x-x-x.compute-1.amazonaws.com ([x.x.x.x]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending subsystem: sftp
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
Transferred: sent 3480, received 2192 bytes, in 0.3 seconds
Bytes per second: sent 13061.7, received 8227.4
debug1: Exit status 0
Connection closed

 

I need some help figuring out what is going on.

 

Thanks!

1 Reply 1

pingduck
Level 1
Level 1

I might be wrong but I don't think there is SFTP support on CSR. Best you can do is SCP and you will need to enable it through config.

 

aaa authorization exec default local

ip scp server enable