When i try to connect an sftp location from my oracle machine using a PL/SQL procedure, i got the ORA-29260: network error: TNS:connection closed error.
- No problem with telnet connection
- Target sftp machine is added to ACL
- No problem on file transfer using ssh
- Can manually connect to sftp location
DECLARE
l_conn UTL_TCP.connection;
BEGIN
l_conn := ftp.login('xx.xx.xx.xx', '22', 'myuser', 'mypass');
-- ftp.ascii(p_conn => l_conn);
-- ftp.put(p_conn => l_conn,
-- p_from_dir => 'MY_DOCS',
-- p_from_file => 'test_get.txt',
-- p_to_file => '/app/test_put.txt
dbms_output.put_line('connection done');
ftp.logout(l_conn);
END;
is there any idea ?
Thanks in advance.