Connect-SCPCmdlet
Parameters Output Objects Config Settings
The Connect-SCP cmdlet is used to create a persistent connection object.
Syntax
$cnn = Connect-SCP [parameters]
Remarks
This cmdlet allows you to create a persistent connection object to be used with related cmdlets.When executing the cmdlet a connection object is returned. Pass this object to the Connection parameter of related cmdlets to use the newly created connection object.
To disconnect call Disconnect-SCP.
Parameter List
The following is the full list of the parameters of the cmdlet with short descriptions. Click on the links for further details.
LogFile | The location of a file to which debug information is written. |
AuthMode | The type of authentication used by the component. |
CertPassword | The password to the certificate store. |
CertStore | The name of the certificate store for the client certificate. |
CertStoreType | The type of certificate store for the client certificate. |
CertSubject | The subject of the certificate used for client authentication. |
CompressionAlgorithms | A comma-separated list containing all allowable compression algorithms. |
Config | Specifies one or more configuration settings. |
Credential | The PSCredential object to use for user/password authentication. |
FirewallHost | Name or IP address of firewall. |
FirewallPassword | A password if authentication is to be used when connecting through the firewall. |
FirewallPort | The port of the firewall to which to connect. |
FirewallType | Determines the type of firewall to connect through. |
FirewallUser | A user name if authentication is to be used connecting through a firewall. |
Force | Forces the component to accept the default behavior instead of querying the user. |
LocalIP | The IP address of the local interface to use. |
LogFile | The location of a file to which debug information is written. |
Password | The password to use for authentication. |
PasswordPrompt | The shell prompt used for keyboard-interactive authentication. |
Port | The TCP port in the remote host to which to connect. |
Server | The address of the Server. |
SSHAccept | The hex-encoded fingerprint of the host to trust explicitly. |
Timeout | The maximum time allowed for the operation. |
User | The username to use for authentication. |
Output Objects
The following is the full list of the output objects returned by the cmdlet with short descriptions. Click on the links for further details.
SCPConnection | The connection object. |
Config Settings
The following is a list of config settings for the cmdlet with short descriptions. Click on the links for further details.
ChannelDataEOL[ChannelId] | Used to break the incoming data stream into chunks. |
ChannelDataEOLFound[ChannelId] | Determines if ChannelDataEOL was found. |
ClientSSHVersionString | The SSH version string used by the component. |
EnablePageantAuth | Whether to use a key stored in Pageant to perform client authentication. |
KerberosDelegation | If true, asks for credentials with delegation enabled during authentication. |
KerberosRealm | The fully qualified domain name of the Kerberos Realm to use for GSSAPI authentication. |
KerberosSPN | The Kerberos Service Principal Name of the SSH host. |
KeyRenegotiationThreshold | Sets the threshold for the SSH Key Renegotiation. |
LogLevel | Specifies the level of detail that is logged. |
MaxChannelDataLength[ChannelId] | The maximum amount of data to accumulate when no ChannelDataEOL is found. |
MaxPacketSize | The maximum packet size of the channel, in bytes. |
MaxWindowSize | The maximum window size allowed for the channel, in bytes. |
PasswordPrompt | The text of the password prompt used in keyboard-interactive authentication. |
PreferredDHGroupBits | The size (in bits) of the preferred modulus (p) to request from the server. |
RecordLength | The length of received data records. |
ServerSSHVersionString | The remote host's SSH version string. |
SignedSSHCert | The CA signed client public key used when authenticating. |
SSHAcceptAnyServerHostKey | If set the component will accept any key presented by the server. |
SSHAcceptServerCAKey | The CA public key that signed the server's host key. |
SSHAcceptServerHostKeyFingerPrint | The fingerprint of the server key to accept. |
SSHFingerprintHashAlgorithm | The algorithm used to calculate the fingerprint. |
SSHFingerprintMD5 | The server hostkey's MD5 fingerprint. |
SSHFingerprintSHA1 | The server hostkey's SHA1 fingerprint. |
SSHFingerprintSHA256 | The server hostkey's SHA256 fingerprint. |
SSHKeepAliveCountMax | The maximum number of keep alive packets to send without a response. |
SSHKeepAliveInterval | The interval between keep alive packets. |
SSHKeyExchangeAlgorithms | Specifies the supported key exchange algorithms. |
SSHKeyRenegotiate | Causes the component to renegotiate the SSH keys. |
SSHMacAlgorithms | Specifies the supported Mac algorithms. |
SSHPubKeyAuthSigAlgorithms | Specifies the enabled signature algorithms that may be used when attempting public key authentication. |
SSHPublicKeyAlgorithms | Specifies the supported public key algorithms for the server's public key. |
SSHVersionPattern | The pattern used to match the remote host's version string. |
TryAllAvailableAuthMethods | If set to true, the component will try all available authentication methods. |
UseStrictKeyExchange | Specifies how strict key exchange is supported. |
WaitForChannelClose | Whether to wait for channels to be closed before disconnected. |
WaitForServerDisconnect | Whether to wait for the server to close the connection. |
ConnectionTimeout | Sets a separate timeout value for establishing a connection. |
FirewallAutoDetect | Tells the component whether or not to automatically detect and use firewall system settings, if available. |
FirewallHost | Name or IP address of firewall (optional). |
FirewallPassword | Password to be used if authentication is to be used when connecting through the firewall. |
FirewallPort | The TCP port for the FirewallHost;. |
FirewallType | Determines the type of firewall to connect through. |
FirewallUser | A user name if authentication is to be used connecting through a firewall. |
KeepAliveInterval | The retry interval, in milliseconds, to be used when a TCP keep-alive packet is sent and no response is received. |
KeepAliveTime | The inactivity time in milliseconds before a TCP keep-alive packet is sent. |
Linger | When set to True, connections are terminated gracefully. |
LingerTime | Time in seconds to have the connection linger. |
LocalHost | The name of the local host through which connections are initiated or accepted. |
LocalPort | The port in the local host where the component binds. |
MaxLineLength | The maximum amount of data to accumulate when no EOL is found. |
MaxTransferRate | The transfer rate limit in bytes per second. |
ProxyExceptionsList | A semicolon separated list of hosts and IPs to bypass when using a proxy. |
TCPKeepAlive | Determines whether or not the keep alive socket option is enabled. |
TcpNoDelay | Whether or not to delay when sending packets. |
UseIPv6 | Whether to use IPv6. |
AbsoluteTimeout | Determines whether timeouts are inactivity timeouts or absolute timeouts. |
FirewallData | Used to send extra data to the firewall. |
InBufferSize | The size in bytes of the incoming queue of the socket. |
OutBufferSize | The size in bytes of the outgoing queue of the socket. |
BuildInfo | Information about the product's build. |
CodePage | The system code page used for Unicode to Multibyte translations. |
LicenseInfo | Information about the current license. |
MaskSensitive | Whether sensitive data is masked in log messages. |
UseInternalSecurityAPI | Tells the component whether or not to use the system security libraries or an internal implementation. |
LogFile Parameter (Connect-SCP Cmdlet)
The location of a file to which debug information is written.
Syntax
Connect-SCP -LogFile string
Remarks
When specified, the cmdlet will log debug information to the file. If the file exists, the information will be appended.Default Value
null
AuthMode Parameter (Connect-SCP Cmdlet)
The type of authentication used by the component.
Syntax
Connect-SCP -AuthMode string
Remarks
Default Value
2
CertPassword Parameter (Connect-SCP Cmdlet)
The password to the certificate store.
Syntax
Connect-SCP -CertPassword string
Remarks
Default Value
""
Parameter Alias
CertificatePassword
CertStore Parameter (Connect-SCP Cmdlet)
The name of the certificate store for the client certificate.
Syntax
Connect-SCP -CertStore string
Remarks
Default Value
"MY"
Parameter Alias
CertificateStore
CertStoreType Parameter (Connect-SCP Cmdlet)
The type of certificate store for the client certificate.
Syntax
Connect-SCP -CertStoreType string
Remarks
Default Value
0
CertSubject Parameter (Connect-SCP Cmdlet)
The subject of the certificate used for client authentication.
Syntax
Connect-SCP -CertSubject string
Remarks
Default Value
"*"
CompressionAlgorithms Parameter (Connect-SCP Cmdlet)
A comma-separated list containing all allowable compression algorithms.
Syntax
Connect-SCP -CompressionAlgorithms string
Remarks
Default Value
"none"
Config Parameter (Connect-SCP Cmdlet)
Specifies one or more configuration settings.
Syntax
Connect-SCP -Config string[]
Remarks
Default Value
null
Credential Parameter (Connect-SCP Cmdlet)
The PSCredential object to use for user/password authentication.
Syntax
Connect-SCP -Credential PSCredential
Remarks
Default Value
null
Parameter Position
1
Parameter Alias
auth
FirewallHost Parameter (Connect-SCP Cmdlet)
Name or IP address of firewall.
Syntax
Connect-SCP -FirewallHost string
Remarks
Default Value
""
FirewallPassword Parameter (Connect-SCP Cmdlet)
A password if authentication is to be used when connecting through the firewall.
Syntax
Connect-SCP -FirewallPassword string
Remarks
Default Value
""
FirewallPort Parameter (Connect-SCP Cmdlet)
The port of the firewall to which to connect.
Syntax
Connect-SCP -FirewallPort int
Remarks
Default Value
0
FirewallType Parameter (Connect-SCP Cmdlet)
Determines the type of firewall to connect through.
Syntax
Connect-SCP -FirewallType string
Remarks
Default Value
0
FirewallUser Parameter (Connect-SCP Cmdlet)
A user name if authentication is to be used connecting through a firewall.
Syntax
Connect-SCP -FirewallUser string
Remarks
Default Value
""
Force Parameter (Connect-SCP Cmdlet)
Forces the component to accept the default behavior instead of querying the user.
Syntax
Connect-SCP -Force SwitchParameter
Remarks
Default Value
false
LocalFile Parameter (Connect-SCP Cmdlet)
The local file to download to.
Syntax
Connect-SCP -LocalFile string
Remarks
Default Value
""
LocalIP Parameter (Connect-SCP Cmdlet)
The IP address of the local interface to use.
Syntax
Connect-SCP -LocalIP string
Remarks
Default Value
""
Parameter Alias
LocalAddress
LogFile Parameter (Connect-SCP Cmdlet)
The location of a file to which debug information is written.
Syntax
Connect-SCP -LogFile string
Remarks
Default Value
""
Overwrite Parameter (Connect-SCP Cmdlet)
Indicates whether the LocalFile may be overwritten.
Syntax
Connect-SCP -Overwrite SwitchParameter
Remarks
Default Value
false
Password Parameter (Connect-SCP Cmdlet)
The password to use for authentication.
Syntax
Connect-SCP -Password string
Remarks
Default Value
""
PasswordPrompt Parameter (Connect-SCP Cmdlet)
The shell prompt used for keyboard-interactive authentication.
Syntax
Connect-SCP -PasswordPrompt string
Remarks
Default Value
"password"
Port Parameter (Connect-SCP Cmdlet)
The TCP port in the remote host to which to connect.
Syntax
Connect-SCP -Port int
Remarks
Default Value
22
RemoteFile Parameter (Connect-SCP Cmdlet)
The name of the remote file to download.
Syntax
Connect-SCP -RemoteFile string
Remarks
Default Value
""
Parameter Position
1
Parameter Alias
Download
Server Parameter (Connect-SCP Cmdlet)
The address of the Server.
Syntax
Connect-SCP -Server string
Remarks
Default Value
""
Parameter Position
0
This is a required parameter.
SSHAccept Parameter (Connect-SCP Cmdlet)
The hex-encoded fingerprint of the host to trust explicitly.
Syntax
Connect-SCP -SSHAccept string
Remarks
Default Value
""
Parameter Alias
Fingerprint
Timeout Parameter (Connect-SCP Cmdlet)
The maximum time allowed for the operation.
Syntax
Connect-SCP -Timeout int
Remarks
Default Value
10
User Parameter (Connect-SCP Cmdlet)
The username to use for authentication.
Syntax
Connect-SCP -User string
Remarks
Default Value
""
SCPConnection Output Object (Connect-SCP Cmdlet)
The connection object.
Syntax
Object SCPConnection {string AuthMode;
string CertPassword;
string CertStore;
string CertStoreType;
string CertSubject;
string CompressionAlgorithms;
string[] Config;
PSCredential Credential;
string FirewallHost;
string FirewallPassword;
int FirewallPort;
string FirewallType;
string FirewallUser;
SwitchParameter Force;
string LocalIP;
string LogFile;
string Password;
string PasswordPrompt;
int Port;
string Server;
string SSHAccept;
int Timeout;
string User;
}