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

You can specify which cipher to use with more. It's even one of the examples in the doc.

Replies are listed 'Best First'.
Re^2: Net::SFTP::Foreign Cipher check
by sofysr (Novice) on Apr 01, 2019 at 17:41 UTC
    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.
      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, );