filmov
tv
How to Install OpenSSH Client and Server Using PowerShell in Windows 10
Показать описание
Looking to install OpenSSH in Windows 10 without using the GUI? Join Wes in this video where he will demonstrate how to install the OpenSSH Client as well as the OpenSSH Server through Windows PowerShell. He'll also demonstrate how to configure the OpenSSH Server service to start when Windows 10 boots and get the service up and running with PowerShell.
Below are the cmdlets used in the video:
Determining if OpenSSH Client and OpenSSH Server are installed:
OpenSSH Client
Get-WindowsCapatibility -Online -Name OpenSSH.Client~~~~0.0.1.0
OpenSSH Server
Get-WindowsCapatibility -Online -Name OpenSSH.Server~~~~0.0.1.0
Installing OpenSSH Client and OpenSSH Server
OpenSSH Client
Add-WindowsCapatibility -Online -Name OpenSSH.Client~~~~0.0.1.0
OpenSSH Server
Add-WindowsCapatibility -Online -Name OpenSSH.Server~~~~0.0.1.0
Set the OpenSSH Server Daemon(service) to start at boot time
Set-Service -Name sshd -StartUpType 'Automatic'
Start the OpenSSH Server Daemon(service)
Start-Service -Name sshd
Verify the OpenSSH Server Daemon(service) running
Get-Service -Name sshd
Create an SSH session from OpenSSH Client to OpenSSH Server
On the OpenSSH Client machine enter:
Type "yes" to accept the OpenSSH Server host key
Enter password of user
Connect with Wes:
#installopensshpowershell #powershellinstallopensshclient #installopensshserver
Below are the cmdlets used in the video:
Determining if OpenSSH Client and OpenSSH Server are installed:
OpenSSH Client
Get-WindowsCapatibility -Online -Name OpenSSH.Client~~~~0.0.1.0
OpenSSH Server
Get-WindowsCapatibility -Online -Name OpenSSH.Server~~~~0.0.1.0
Installing OpenSSH Client and OpenSSH Server
OpenSSH Client
Add-WindowsCapatibility -Online -Name OpenSSH.Client~~~~0.0.1.0
OpenSSH Server
Add-WindowsCapatibility -Online -Name OpenSSH.Server~~~~0.0.1.0
Set the OpenSSH Server Daemon(service) to start at boot time
Set-Service -Name sshd -StartUpType 'Automatic'
Start the OpenSSH Server Daemon(service)
Start-Service -Name sshd
Verify the OpenSSH Server Daemon(service) running
Get-Service -Name sshd
Create an SSH session from OpenSSH Client to OpenSSH Server
On the OpenSSH Client machine enter:
Type "yes" to accept the OpenSSH Server host key
Enter password of user
Connect with Wes:
#installopensshpowershell #powershellinstallopensshclient #installopensshserver
Комментарии