Install OpenSSH on microsoft windows server 2016 and open ssh port 22 in windows firewall

Поділитися
Вставка
  • Опубліковано 28 лип 2024
  • If you are like me in love with Microsoft Hyper-V environment and run all your virtual machine on it? or you just have a Windows Server 2016 you need to control over SSH from a Linux machine or mabey from Windows 10?
    Then you are coming to the right video about it, i will guide your for this microsoft windows server 2016 video how you can download OpenSSH, install it via powershell, add it to you system services and allow port 22 in windows firewall.
    Everything i done in this video course i do becures i need it for my daly work to be more produktive when i'm working and don't need RDP remote access enymore when you have ssh.
    When you install openssh on your windows server operating system its will include you to use sftp server.
    Search for OpenSSH to Windows Server 2019: • Install OpenSSH on Mic...

КОМЕНТАРІ • 111

  • @baberaham
    @baberaham 5 років тому +9

    This was my 4th resource and your instructions were very clear and concise. Thank you!

    • @pnk
      @pnk  5 років тому

      Thanks so much for you feedback, so happy you like it.

  • @brunoillipronti8641
    @brunoillipronti8641 5 років тому +6

    It worked perfectly on Windows Server 2012 (following the same steps). Thank you

    • @pnk
      @pnk  5 років тому

      Thanks for feedback, happy its working on Windows Server 2012 to :)

  • @BoodroGaming
    @BoodroGaming 4 роки тому +4

    Just subbed, thanks Ive been trying to figure this out for a couple days..... You are the man

    • @pnk
      @pnk  4 роки тому

      Thanks for you subscribe, and thanks for you like my video and thanks for you feedback.

  • @samiswilf
    @samiswilf 5 років тому +2

    Thanks for the video. It saved me time in not needing to figure this all out myself

    • @pnk
      @pnk  5 років тому

      You welcom, happy its help :) thanks for you feedback

  • @harold4277
    @harold4277 2 роки тому +1

    Excellent tutorial you saved me some time. Thanks!

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

    Thanks for this guide! Saved my day.

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

    Excellent work, very clear and easy to understand. Thanks

  • @prasangsinghal7887
    @prasangsinghal7887 2 роки тому

    Can't thank you enough. I was struggling to set this up.

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

    This tutorial was definitely very helpful. thanks so much

  • @melissabutler4366
    @melissabutler4366 3 роки тому +2

    Thank you so much, it worked exactly as you explained :)

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

      Thanks for your comment, you welcom

  • @piyushsahu6045
    @piyushsahu6045 4 роки тому +1

    Instruction were amazing. Got it done in a snap.

    • @pnk
      @pnk  4 роки тому +1

      Thanks for feedback, good to know was easy :)

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

    thanks for your help, i installed ssh client in win server 2012 with these steps, greetings from Mexico friend

  • @susan.s.mtegha69
    @susan.s.mtegha69 8 місяців тому

    Excellent tutorial. Thank you so much this was so helpful.

  • @kiranbharadwaj271
    @kiranbharadwaj271 2 роки тому

    Thanks for this....
    It really helped me... In completing the project on time....

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

    Excellent.
    Worked perfectly.

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

      Thanks you find it useful, and thanks for you comment

  • @brittzkrieg
    @brittzkrieg 5 років тому +1

    Very helpful. Thank you!

    • @pnk
      @pnk  5 років тому

      Thanks for your feedback :)

  • @yassinsoltani2725
    @yassinsoltani2725 4 роки тому +1

    Thank you so much that was reaaaaaly helpful

    • @pnk
      @pnk  4 роки тому

      Very happy to know its helpful, thanks for your comment

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

    Very good video it helped me a lot, thank you!

  • @karthikkannavijayakumar1260
    @karthikkannavijayakumar1260 5 років тому +1

    Helped me alot .. Thanks for the video

    • @pnk
      @pnk  5 років тому

      Happy to help you, thanks for feedback

  • @jasonsullivan5481
    @jasonsullivan5481 4 роки тому +1

    Thanks for this , very helpful

    • @pnk
      @pnk  4 роки тому

      Thanks for you feedback, happy you found it useful :)

  • @palmweaver
    @palmweaver 5 років тому +1

    Brilliant - Very good tutorial

    • @pnk
      @pnk  5 років тому

      Thanks for you comment and feedback.

  • @shambhunathsahani6505
    @shambhunathsahani6505 2 роки тому +1

    Thank you great now successfully ssh and scp

  • @JetChoong920515
    @JetChoong920515 4 роки тому +2

    nice this is what i was looking for

    • @pnk
      @pnk  4 роки тому

      Thanks for you feedback, happy you found what you search :)

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

    thank u. it was helpful video

  • @sikandarboy
    @sikandarboy 4 роки тому +1

    Thanks... a real life saver !

    • @pnk
      @pnk  4 роки тому

      Thanks for feedback, and happy you like it :)

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

    Thank you so much, it works.

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

      You welcom, thanks for you comment

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

    just perfect dude. Respect

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

    Simple and Precise :-)

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

      Thanks for you comment

  • @khaleddepas84
    @khaleddepas84 2 роки тому

    Thanks for the video

  • @prathameshpawar6956
    @prathameshpawar6956 2 роки тому

    Thank you Sir its work

  • @vincentjean6756
    @vincentjean6756 4 роки тому +1

    Great, thanks!

    • @pnk
      @pnk  4 роки тому

      Your welcom :)

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

    Super

  • @MrHasan-ur1nv
    @MrHasan-ur1nv 2 роки тому

    amazing
    my issue was solved

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

    Any comment on the security of this setup, or possible improvements?

  • @VivekAyer
    @VivekAyer 5 років тому +1

    Thanks, very useful

    • @pnk
      @pnk  5 років тому

      You welcom, :)

    • @gagnepa
      @gagnepa 5 років тому

      @@pnk I need to connect to various Linux VMS using SSH with powershell. We use private and public keys to authenticate. The server's do not use port 22. They use various ports assigned by security as gateway ports.

  • @gtrived3
    @gtrived3 4 роки тому +1

    great!, its help!

    • @pnk
      @pnk  4 роки тому

      Happy its help you, and thanks for comment

  • @darxxx
    @darxxx 4 роки тому +1

    Thanks for this guide! :)
    Just one Question, couldn't find anything on this: how could I set up ssh users for accessing only one specific Folder and not the entire Directory system?

    • @pnk
      @pnk  4 роки тому

      Thanks for you comment.
      On linux you bind the folder to the single user, its nothing to do with the ssh login, ssh its just a protocol there allow you to connect remotely like RDP :)
      So i think you need to lock the folder for the single user so the user only have access to home folder

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

    when i try to connect, it says: Permission denided (publickey,keyboard-nteractive).

  • @abdurahmanfaisal6835
    @abdurahmanfaisal6835 2 роки тому

    Do you have any video installing the same setup on windows server 2008 R2 ?

  • @ravikant-tv3zr
    @ravikant-tv3zr 4 роки тому

    good video, can you please let us know I want to change the path, after installation it use users home directory I want to change to another directory.

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

    Nice Job
    Would be cool to show how to use key files

  • @ahmedsaad-lk2og
    @ahmedsaad-lk2og Рік тому

    Thanks

  • @minhson1411
    @minhson1411 2 роки тому

    thanks!

  • @armnpk
    @armnpk 5 років тому +1

    Thank you for awesome video, what if I were to run a bash script (.sh) on server after connecting with SSH? At the moment I run it on Bash Terminal. want to run it thru terminal

    • @pnk
      @pnk  4 роки тому

      Sorry for the late replay, you can't run bash / sh script direcly inside windows, you need to install subsystem for it first like Ubuntu or somthing like that, if you run on Windows Server 2019 i got this video ua-cam.com/video/kUl0_RvxG90/v-deo.html you can se how to install a subsystem, and then you can login by using SSH for windows server 2019 and execute your bash script if you are going into the subsystem first.
      But why not save your self all the pain, translate your bash script into a powershell then you can run it on your Windows 2016 server, i will recommend you to translate it :)

  • @shambhunathsahani6505
    @shambhunathsahani6505 2 роки тому +1

    unable to negotiate with ip port 22: no matching host key found ---this error getting please suggest

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

    How to restrict user to only a particular folder?

  • @MSMS-on8rs
    @MSMS-on8rs 5 місяців тому

    yes clear one

  • @gagnepa
    @gagnepa 5 років тому +1

    I need help learning to use OpenSSH to connect to Linux VMs with port forwarding.

    • @pnk
      @pnk  5 років тому

      Thanks for your comment, what your mean? Then i Will try to help you :)
      What VM provider are you using? And witch Linux disto?

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

    How can I solve the following issue on widows 10?
    Warning: Permanently added '127.0.0.1' (ECDSA) to the list of known hosts.
    Connection reset by 127.0.0.1 port 22

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

    Sir, can pleasure demonstrate how prevent some users to use ssh in windows server. I tried to use DenyUsers, AllowUsers but it not works.
    Thank you so much.

  • @reubenyahsrael346
    @reubenyahsrael346 4 роки тому +1

    Thanks for this video, I have question on SCP how do I get that running?

    • @pnk
      @pnk  4 роки тому +1

      Thanks for you comment, and happy you like it, :) in 2019 the SCP is build in like SSH is, on 2016 i think you need to install SCP at your self, you can take a look here serverfault.com/questions/10468/ssh-scp-server-on-windows i have not tested it, but maby its help you.

  • @RetroSmoo
    @RetroSmoo 4 роки тому +1

    Still useful today

    • @pnk
      @pnk  4 роки тому +1

      Thanks for feedback, yes 2016 servers still running out there, :)

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

    hello, error shell request failed on channel 0???'

  • @sunilbajracharya5667
    @sunilbajracharya5667 4 роки тому +1

    I would like to have a video regarding how we connect using Private/Public Key in Windows Server 2016. That would be great if you could make that video

    • @pnk
      @pnk  4 роки тому

      Thanks for you comment and feedback, what did you mean? how you can allow multi users to connect whitout password to the server our?

    • @NALLELYlINdA1
      @NALLELYlINdA1 4 роки тому +1

      @@pnk hi, i want to know how can i configurate use only one user? because in my case any users can inside my server with openssh

    • @pnk
      @pnk  4 роки тому +1

      @@NALLELYlINdA1 Thanks for your question, i have created 2 new video's there will be public d. 15 and 17 June 2020, its for Windows Server 2019, but its shut be same way on Windows Server 2016, you can find the playlist about it here ua-cam.com/play/PLLhEJK7fQIxDQ6zmgl8EELm25DEbumxA2.html

  • @user-vq3ed4iw4q
    @user-vq3ed4iw4q 3 роки тому

    How can get host name windows 10??

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

    i don't know my key who is for my ssh

  • @bintarouser
    @bintarouser 5 років тому +1

    Hi, I have running it in windows 2016, but sshd service didn't appeared. Is there any clue?

    • @pnk
      @pnk  5 років тому

      Thanks for you comment, the services shut ofc appeared, if not can you pls try to do all the steps one more time?

    • @bintarouser
      @bintarouser 5 років тому

      @@pnk yes, i have already try it several time, but can't get notif granting seAssignPrimaryTokenPrivilage to NTSERVICE\SSHD SUCCESSFULL when i execute .\install-sshd.ps1 in poweshell
      I have already download n apply 2 version of installer v8.0.0 and v7.9.0 also did'nt succeed 😭

  • @DaminalTheAminal
    @DaminalTheAminal 4 роки тому +1

    When I try to start the service I get a 1067 error... (Win Server 2016)

    • @pnk
      @pnk  4 роки тому

      First thanks for you comment, what i can find about the error 1067 you are speaking about, its look like you have doing something wrong with the services, the error is coming when its failed to start the services, be sure link to the right path.

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

    I would like to thank you for this tutorial..I am facing one issue..I installed latest OpenSSH server inside windows server2016 and when I am trying to connect from Windows client machine in command prompt: "ssh Administrator@server_ipaddress",it is showing "Connection reset by server_ip port22"....please help me to troubleshoot this issue...Thank you

    • @infectedN8
      @infectedN8 2 роки тому

      perhaps you forgot to add firewall rules ?

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

    YES! I Agree with everyone's comment. Thank you! @pnk

  • @aghileslounis
    @aghileslounis 4 роки тому +1

    awesome but did not work for me i need a password to connect and i don't have password setup for the computer, even i tried to create one but it seems it need some other password

    • @pnk
      @pnk  4 роки тому +1

      your login shut be as defualt "administrator" and then the administrator password you pick to the server, if you create a new user on the server then you need to use this password
      if its not working i think not its a openssh problem, but somthing on your server you need to look at, d. 15 and 17 June i will published 2 new videos about OpenSSH for Windows 2019, try to watch this video's it will work for Windows Server 2016 to.

  • @BioExtract
    @BioExtract 4 роки тому +2

    Pretty great that they changed the github repo and now this tutorial doesnt make any sense. Woooo 10/10 programming

    • @pnk
      @pnk  4 роки тому

      Thanks for your feedback, What you mean about there have changed the repo?

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

      hahah true!

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

    Ssh vm3@ip password : gives permission denied ...I actually gave the vm3 password used for authentication shohld I use any other password

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

      Its hard to say what you do wrong, the login user and password is the same there are used to login to Windows as normal :)

  • @HimanshuSaini-tj7vx
    @HimanshuSaini-tj7vx 3 роки тому +1

    Plz can anyone tell me where to get this ssh password

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

      Himanshu Saini you ssh password are bind to you Windows user you login with

    • @HimanshuSaini-tj7vx
      @HimanshuSaini-tj7vx 3 роки тому

      @@pnk I have not setup login password sirr

    • @HimanshuSaini-tj7vx
      @HimanshuSaini-tj7vx 3 роки тому

      @@pnk sir plz help me

    • @HimanshuSaini-tj7vx
      @HimanshuSaini-tj7vx 3 роки тому

      @@pnk they are encrypted

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

      Himanshu Saini you need to set a password for your Windows user to work with ssh Else its Will not working, if you dont have password you need to create one :)

  • @arifsadiqov1477
    @arifsadiqov1477 2 роки тому

    Thanks