Passive Parameter (Connect-SFTP Cmdlet)
Controls whether to direct the server into passive mode. Recommended if behind a firewall.
Syntax
Connect-SFTP -Passive bool
Data Type
bool
Default Value
true
Remarks
This property controls whether to direct the server into passive mode. Many firewalls will not allow the FTP server to open a connection from outside to the higher ports where the cmdlet expects them. If Passive is set to TRUE, the cmdlet will use the PASV command instead of the PORT command and will thus direct the server into passive mode: connections are initiated only by the client.