Key Authentication for PuTTY and WinSCP

Поделиться
HTML-код
  • Опубликовано: 19 июн 2024
  • In this video, we show how to do key authentication for PuTTY and WinSCP
    SSH keys are a more secure method of authentication than using a username and password and edb25519 is a more modern and less intensive algorithm then RSA
    We show how to create public and private edb25519 keys using puttygen and how to authorize SSH keys to login to a Linux server running Ubuntu server 20.04 for example
    We show how to configure PuTTY to use a private SSH key for authentication and how to disable password authentication on an Ubuntu server to enforce SSH key authentication
    We also show how to import a private key made with OpenSSH and convert it to a PPK file using pttgen so that PuTTY can use it
    This way you can use the same key on either operating system
    We also show how to configure WinSCP to use a private SSH key for authentication
    Useful links:
    www.chiark.greenend.org.uk/~s...
    winscp.net/eng/download.php
    =============================
    SUPPORT THE CHANNEL
    Donate through Paypal:
    paypal.me/DavidMcKone
    Donate through Buy Me A Coffee:
    buymeacoffee.com/dmckone
    Become a monthly contributor on Patreon:
    / dmckone
    Become a monthly contributor on RUclips:
    / @techtutorialsdavidmckone
    ==============================
    ==============================
    MEDIA LINKS:
    Website - www.techtutorials.tv/
    Twitter - / dsmckone1
    Facebook - / dsmckone
    Linkedin - / dmckone
    Instagram - / david.mckone
    ==============================
    Credits:
    LoveLife | Instrumental Prod. Blue Mango | EQMUSEQ.COM by Don Da Vinci
    soundcloud.com/eqmuseq/loveli...
    00:00 Intro
    00:27 Download and Install Putty
    03:04 Create SSH Key
    08:03 Upload Public Key
    12:10 Putty SSH Keys
    19:34 Disable Password Authentication
    24:00 Import OpenSSH Key
    29:03 WinSCP SSH Keys
    winscp ssh private key,putty ssh private key,ssh key putty,ssh key winscp,putty ssh key,winscp ssh key,windows generate ssh keys,windows ssh key authentication,winscp,scp,sftp,ssh,public key,private key,putty,puttygen,wincsp,keys,generate keys,ed25519,create windows ssh key,windows ssh keys, key authentication for putty and winscp
  • НаукаНаука

Комментарии • 34

  • @TechTutorialsDavidMcKone
    @TechTutorialsDavidMcKone  2 года назад +2

    SSH keys are more secure than usernames and passwords. PuTTY and WinSCP are very popular Windows application to access Linux servers. So it makes sense to configure these to use keys

  • @h1ghpower
    @h1ghpower Год назад +3

    10:00 is EXACTLY what I was looking for... I have tried at my work place to set SSH for my users for a week almost.. I didnt knew what I was doing wrong... so remember guys, you have to log in to the server from each user you want to create SSH for, and to create the .ssh hidden folder and so on.
    THANK YOU SO MUCH David!!!! MUCH APPRECIATED.... Best video definetly on this topic from so so many... that piece of information saved me days/weeks

  • @AliRaza-mc1ob
    @AliRaza-mc1ob 2 года назад +2

    Thank you for the detailed video on it

    • @TechTutorialsDavidMcKone
      @TechTutorialsDavidMcKone  2 года назад

      Thank you for the feedback. It is really appreciated. And I'm glad to hear this was a useful video for you

  • @dangaines405
    @dangaines405 Год назад +1

    Great tutorial David! Liked and subscribed!

  • @kitukit000
    @kitukit000 9 месяцев назад +1

    Really helped with this, thanks a lot!

  • @Amaniw92
    @Amaniw92 2 года назад +1

    Thanks for this

  • @danielscott1709
    @danielscott1709 Год назад +1

    Any tips on getting the correct directory setup and authorized_keys file for a windows client to windows client WinSCP setup using the key pairs? Seem to be getting "server refused our key" all the time. Thanks!

    • @TechTutorialsDavidMcKone
      @TechTutorialsDavidMcKone  Год назад

      Applications like Putty and WinSCP are configured with the key as part of the stored session so there is no directory structure as such
      But as BahadirM pointed out, Pageant is a useful tool for managing SSH keys
      It's supplied as part of the Putty and WinSCP packages and works with both Putty and WinSCP

  • @bahadirm
    @bahadirm Год назад +3

    I like to use Pageant from Putty for my keys, it loads the keys (encrypted or not, you can select) to the memory and if the work is done or you restart your PC, it's gone from the memory.

  • @airpods4
    @airpods4 2 года назад +1

    Is it possible to virtualize baremetal macos on proxmox without gpu and using only ryzen apu?

  • @mknet5557
    @mknet5557 8 месяцев назад +1

    hi thanks for this, on winscp i get server refused our key... what could be the issue?

    • @TechTutorialsDavidMcKone
      @TechTutorialsDavidMcKone  8 месяцев назад

      There can be various reasons so here goes...
      If the server refused the key chances are the public key has not been copied to it or it isn't in the right place
      You have to make sure the public key is associated with the user account that's logging in
      There's no point logging in as Jane for instance if the key was uploaded to John's account
      Or maybe WInSCP isn't using the correct private key when it authenticates or isn't using one at all so you need to check it's configuration
      And do make sure the correct key pairs are being used

  • @need5868
    @need5868 Год назад +1

    good

  • @carloscastroquintosa3598
    @carloscastroquintosa3598 Год назад +1

    how can I connect two computer using Winscp in two different state? Example I'm in New York and my brother is in Nebraska and we want to shared big files , how we can do that ? Help please

    • @TechTutorialsDavidMcKone
      @TechTutorialsDavidMcKone  Год назад

      To use something like WinSCP you would need a VPN service which is beyond the scope of this video
      Assuming this will be over the Internet, you could also use a shared cloud service like DropBox
      You can then both upload and download files using the same account
      There are other providers and it really depends on how big your files are
      Each provider offers different storage amounts for free but charge for amounts above that

    • @carloscastroquintosa3598
      @carloscastroquintosa3598 Год назад

      @@TechTutorialsDavidMcKone what about something like a source and destination, I don't want to complicated to much, something like point to point or synchronization, I don't know if I said it right, I'm not a IT guy, any other advice will be appreciated

    • @TechTutorialsDavidMcKone
      @TechTutorialsDavidMcKone  Год назад +1

      @@carloscastroquintosa3598 I haven't used WinSCP for that purpose but there are details to be found here
      winscp.net/eng/docs/task_synchronize_full
      As long as two computers can reach other that should work

  • @giannisparounof7111
    @giannisparounof7111 11 месяцев назад +1

    how i fix problem with network error?

    • @TechTutorialsDavidMcKone
      @TechTutorialsDavidMcKone  11 месяцев назад

      There can be many reasons for a network error so unfortunately I can't say what the problem is

    • @giannisparounof7111
      @giannisparounof7111 11 месяцев назад

      @@TechTutorialsDavidMcKone okk thanks

  • @moustaphasd
    @moustaphasd 2 года назад +1

    server refused our key
    ?

    • @TechTutorialsDavidMcKone
      @TechTutorialsDavidMcKone  2 года назад

      Did you upload your public key and store it in the authorized_keys file for the user you are logging in as?
      Have you configured PuTTY to login with that user account e.g. fred@192.168.1.1 ?
      And have you configured PuTTY to use the correct private key?

    • @moustaphasd
      @moustaphasd 2 года назад +1

      @@TechTutorialsDavidMcKone
      i aploaded it but not worked
      i want to configure ubuntu 20.04 server on windows i used vmwareworkstaion16 using pUTTY but not work i dont know why
      Permission denied
      Please help me
      {passeword access denied}

    • @TechTutorialsDavidMcKone
      @TechTutorialsDavidMcKone  2 года назад

      Check the permissions of the authorized_keys file
      As well as being in the user's .ssh directory, the user that is logging in needs access to it
      So if it was created by the root account for instance then it won't work

    • @moustaphasd
      @moustaphasd 2 года назад +1

      @@TechTutorialsDavidMcKone
      Thank you for the explaining
      Do u hav any video about that

    • @TechTutorialsDavidMcKone
      @TechTutorialsDavidMcKone  2 года назад

      I don't have a video but if you login to the console and change to the user's .ssh folder you can change the file permissions
      sudo chown user:user authorized_keys
      Although you'll need to replace user in that command with the actual user name