in reply to Re: Net::SFTP::Foreign Cipher check
in thread Net::SFTP::Foreign Cipher check

Thank you. Yeah I saw that, but is there any way to find out what cipher I am using to connect? Since it is a Production environment, I do not want to change the script unless it is the only option. If the cipher that I am currently using is in the allowed range, then I am good. No need to make any changes to script.

Replies are listed 'Best First'.
Re^3: Net::SFTP::Foreign Cipher check
by mikelieman (Friar) on Apr 01, 2019 at 17:54 UTC
    Using the same "more" option, you can give it the -v option to run in debug mode, which will display the ciphers used.
      I tried the more option but I get the error, "Invalid option 'more' or bad combination of options". After researching, I found that since I am using "backend => 'Net_SSH2'" option in the connection string, the more option is not supported. My connection string:
      $sftp = Net::SFTP::Foreign->new($host, port => '22', backend => 'Net_S +SH2', user => $sftpuser, key_path => $filepath, );