Abaixo estão os registros. Servidor remoto é instância Ec2.Isso só acontece com a instância ec2 outras conexões ftp funciona bem.Eu tenho outro sistema centos7 em que a conexão FTP funciona bem
2018-03-21 14:15:01 9259 1 Command: keyfile "/home/amar/Desktop/lowcost-key.pem"
2018-03-21 14:15:01 9259 1 Command: open "[email protected]" 22
2018-03-21 14:15:02 9259 1 Status: Connected to abc.com
2018-03-21 14:15:02 9259 1 Status: Retrieving directory listing...
2018-03-21 14:15:02 9259 1 Command: pwd
2018-03-21 14:15:02 9259 1 Response: Current directory is: "/home/ubuntu"
2018-03-21 14:15:02 9259 1 Command: ls
2018-03-21 14:15:02 9259 1 Status: Listing directory /home/ubuntu
2018-03-21 14:15:02 9259 1 Status: Directory listing of "/home/ubuntu" successful
2018-03-21 14:15:05 9259 1 Status: Retrieving directory listing of "/home/ubuntu/Downloads"...
2018-03-21 14:16:02 9294 1 Status:Connecting to abc.com...
2018-03-21 14:16:02 9294 1 Response:fzSftp started, protocol_version=6
2018-03-21 14:16:02 9294 1 Command:keyfile "/home/amar/Desktop/lowcost-key.pem"
2018-03-21 14:16:02 9294 1 Command: open "[email protected]" 22
2018-03-21 14:16:03 9294 1 Status: Connected to abc.com
2018-03-21 14:16:03 9294 1 Status: Retrieving directory listing...
2018-03-21 14:16:03 9294 1 Command: pwd
2018-03-21 14:16:03 9294 1 Resposta: O diretório atual é: "/ home / ubuntu"
2018-03-21 14:16:03 9294 1 Command: ls
2018-03-21 14:16:03 9294 1 Status: Listing directory /home/ubuntu
2018-03-21 14:16:03 9294 1 Status: Directory listing of "/home/ubuntu" successful
2018-03-21 14:16:13 9294 1 Status: Retrieving directory listing of "/var/www/html"..."