Public/Connect-OpenSSH.ps1
function Connect-OpenSSH { <# .SYNOPSIS Modified 5302019 -Taylor Lee .DESCRIPTION Use this function to connect to an SSH Sesstion .EXAMPLE Connect using a domain account and DNS Name Connect-SSH -User "domain\username" -server "Hostname" .EXAMPLE Connect using a local account and ipv4 Connect-SSH -User "username" -server "192.168.0.1" .NOTES Requires the OpenSSH client feature be installed locally and SSH enabled on the server .Link Enable-PSRemoting Enable-Remoting Install-SSH #> [CmdletBinding()] [Alias('Connect-SSH')] Param ( [Parameter(Mandatory = $true)]$User, [Parameter(Mandatory = $true)]$Server ) ssh.exe $user@$server } |