< Back
New-SFTPSymlink
Post
NAME New-SFTPSymlink
SYNOPSIS
Create a Symbolic Link on the remote host via SFTP.
SYNTAX
New-SFTPSymlink [-SessionId] <Int32[]> [-Path] <String> [-LinkPath] <String> [<CommonParameters>]
New-SFTPSymlink [-SFTPSession] <SftpSession[]> [-Path] <String> [-LinkPath] <String> [<CommonParameters>]
DESCRIPTION
Create a Symbolic Link on the remote host via SFTP.
PARAMETERS
-SessionId <Int32[]>
SFTP Session Id for an existing session.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Path <String>
Path on remote host to link to.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-LinkPath <String>
Path on remote host to create as the symbolic link.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-SFTPSession <SftpSession[]>
SFTP Session Object of an exiting session.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.Int32[]
System.String
SSH.SftpSession[]
OUTPUTS
NOTES
Example 1
PS C:\\> New-SFTPSymlink -SessionId 0 -Path "/usr/share/myscripts/nullhistory.py" -LinkPath "/usr/bin/nullhistory"
Create a symlink for a script.
RELATED LINKS
Online Version: https://github.com/darkoperator/Posh-SS ... aster/docs
SYNOPSIS
Create a Symbolic Link on the remote host via SFTP.
SYNTAX
New-SFTPSymlink [-SessionId] <Int32[]> [-Path] <String> [-LinkPath] <String> [<CommonParameters>]
New-SFTPSymlink [-SFTPSession] <SftpSession[]> [-Path] <String> [-LinkPath] <String> [<CommonParameters>]
DESCRIPTION
Create a Symbolic Link on the remote host via SFTP.
PARAMETERS
-SessionId <Int32[]>
SFTP Session Id for an existing session.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Path <String>
Path on remote host to link to.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-LinkPath <String>
Path on remote host to create as the symbolic link.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-SFTPSession <SftpSession[]>
SFTP Session Object of an exiting session.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.Int32[]
System.String
SSH.SftpSession[]
OUTPUTS
NOTES
Example 1
PS C:\\> New-SFTPSymlink -SessionId 0 -Path "/usr/share/myscripts/nullhistory.py" -LinkPath "/usr/bin/nullhistory"
Create a symlink for a script.
RELATED LINKS
Online Version: https://github.com/darkoperator/Posh-SS ... aster/docs