RemotePort Parameter (Connect-SFTP Cmdlet)
Specifies the port number that the provider uses to connect to the SFTP server.
Syntax
Connect-SFTP -RemotePort string
Data Type
cstr
Default Value
""
Remarks
This property sets the port that the 本製品 uses to connect to the SFTP server.
By default, most SFTP servers listen on port 22. Set this property only if your server uses a different port.
This property is used together with RemoteHost to identify the SFTP server.