Problem accessing MRN via SFTP using Python

dev_jan
dev_jan Newcomer
edited January 24 in Refinitiv Data Platform

I've been following this tutorial to access the MRN news using python. The ssh authentication and connection using the Machine ID is successful, but the output of sftp.listdir() is leading to a file not found error. What could be the reason for this error? Thanks in advance

Answers

  • Hello @dev_jan

    Can you use the same Machine ID and Password to access the MRN SFTP remote server via the SFTP client application like FileZilla or WinSCP?

    • Username: Machine-ID
    • Password: Your Password
    • Host: archive.news.refinitiv.com
    filezilla.png

    Note: My environment requires the VPN connection to access the MRN SFTP remote server, I am not sure if your environment needs a supported VPN to connect to it.

    If the SFTP client shows the same file not found error or not show any files, I strongly suggest you contact the MRN Support team directly to verify the issue. You can contact the team via https://myaccount.lseg.com/en/productsupport website

    contact_mrn_support.png
  • Hello @dev_jan

    I think that if you are unable to retrieve the directory listing (listdir()), then your Machine ID does not have privilege to access MRN via SFTP. You can reach out to the LSEG account manager to verify SFTP access.

    Once, you have proper access credentials, then try using SFTP tool like WinSCP to login and view contents before using a programmatic access.

  • dev_jan
    dev_jan Newcomer

    Thank you for your reply. I did try it with FileZilla too. I get the error 'Error: Connection closed by server'.
    I have now reached out to the support team.