How to Install OpenSSH Client and Server Using PowerShell in Windows 10

Поділитися
Вставка
  • Опубліковано 15 лип 2021
  • 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.
    Looking for more Microsoft training? Start learning today with ITProTV: go.itpro.tv/courses-microsoft
    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:
    ssh username@openssh_server_local_ip_address
    Type "yes" to accept the OpenSSH Server host key
    Enter password of user
    Connect with Wes:
    LinkedIn: / wesleyabryan
    Twitter: / wes_itprotv
    #installopensshpowershell #powershellinstallopensshclient #installopensshserver

КОМЕНТАРІ • 18

  • @AriannaEuryaleMusic
    @AriannaEuryaleMusic 2 роки тому +6

    Just a little typo on your commands > Get-WindowsCapatibility...

  • @RIPUZI
    @RIPUZI 3 роки тому

    Thanks Wes. Always edutaining!

  • @comanmatei3210
    @comanmatei3210 3 роки тому +1

    Thanks for the video Man!!! Such a blessing this channel, on GOD 🙏🙏 awesome TEACHERS !!!! Easy to understand and well explained (FACTS: i am a Linux/Mac day-to-day user) dealing wit Windows pc’s at work this comes in verry handy !! So thanks again for the video and have a nice day✌️

  • @ZATECHINFO761

    Thank you so much

  • @mortenlund1418
    @mortenlund1418 Рік тому

    Have anybody encountered problems due to firewall? Thanks for a great video. Cant wait to try it out. Best wishes. Best style.

  • @supersoakerguy3
    @supersoakerguy3 Рік тому

    Nice tutorial, just a quick question you specified OpenSSH.Server~~~~

  • @harrytrueman4216
    @harrytrueman4216 3 роки тому

    Great video, need more powershell, at an intermediate level

  • @mohamadferdowssharifi4550
    @mohamadferdowssharifi4550 3 роки тому

    It was very informative for me but dear wes I could not understand how and when I should use from these sub commands "-ScratchDirectory", " -Source", "-SystemDrive", "-WindowsDirectory" please help me thank you.

  • @billwilliam1001
    @billwilliam1001 Рік тому

    Good job. @microsoft - did we really need to use the ridiculously long name OpenSSH.Client~~~~

  • @komaboi19
    @komaboi19 3 роки тому

    What was the purpose of running WinVer (I know what it does, but why was running WinVer necessary for this)?

  • @ShakKy33
    @ShakKy33 Рік тому +2

    wtf where do i get the password dude

  • @arianelwansyah
    @arianelwansyah Рік тому

    i have a problem when installed the first one