Would you like to learn how to download files from an SSH server using Powershell? In this tutorial, we are going to show you how to use Powershell to download files from an SSH server using the command-line on a computer running Windows.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
Equipment list
Here you can find the list of equipment used to create this tutorial.
This link will also show the software list used to create this tutorial.
Related tutorial – PowerShell
On this page, we offer quick access to a list of tutorials related to PowerShell.
Tutorial Powershell – Download files from SSH server
As an Administrator, start a new POWERSHELL command-line prompt.
Install the required Powershell module.
Confirm the installation of NUGET.
Confirm the installation of the package repository.
Allow the execution of Powershell scripts.
Import the Powershell module named POSH-SSH.
List all commands available on the Powershell module.
Here is the command output.
Download a file from the SSH server.
Enter the credential to the SSH connection.
Here is the command output.
In our example, we downloaded a file named DMESG from the SSH server and saved it in the current directory.
Optionally, download a file from the SSH server using a stored credential.
There are multiple ways to use Powershell and a stored credential.
Congratulations! You are able to download files from the SSH server using Powershell.