You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Miles Cummings edited this page Dec 15, 2023
·
1 revision
ssh.ps1
# Storyline: Login to a remote SSH server.
# New-SSHSession -ComputerName '192.168.4.22' -Credential (Get-Credential sys320)
# while ($True) {
# Add a prompt to run commands
# $the_cmd = read-host -Prompt "Please enter a command"
# Run a command on a remote SSH server
# (Invoke-SSHCommand -index 0 $the_cmd).Output
# }
Set-SCPFile -Computername '192.168.4.22' -Credential (Get-Credential sys320) `
-RemotePath '/home/sys320' -LocalFile '.\tdex.jpeg'