SYS320 Week 12 Lab - JadenGil/Jaden-Tech-Journal GitHub Wiki
# Login to a remote SSH Server
New-SSHSession -Computername '192.168.198.138' -Credential (Get-Credential sys320)
while ($True) {
`# Add a prompt to run commands`
`$the_cmd = read-host -Prompt "Please enter a command"`
`# Run command on remote SSH Server`
`(Invoke-SSHCommand -index - 'ps -ef').Output`
}
Set-SCPFile -Computername '192.168.x.x' -Credntial (Get-Credential sys320)
-RemotePath '/home/sys320' -LocalFile '.\tedx.jpeg'