Multiple connections using single sessionOptions
Hi
I am currently writing a script to connect to multiple remote servers but some use sftp, sftp with ssh encryption, ftp, ftp with implicit TLS, ftp with explicit TLS, and ftp active. Currently I list out each type of connection with an if statement to determine which to use. Is there a way to to do this with only one sessionOption object rather than six different if statements?
I am currently writing a script to connect to multiple remote servers but some use sftp, sftp with ssh encryption, ftp, ftp with implicit TLS, ftp with explicit TLS, and ftp active. Currently I list out each type of connection with an if statement to determine which to use. Is there a way to to do this with only one sessionOption object rather than six different if statements?