How to enable SSH on Linux Ubuntu (Easy step by step guide)

Поделиться
HTML-код
  • Опубликовано: 20 авг 2024
  • Install OpenSSH-server on Ubuntu to enable SSH to remotely connect to your Ubuntu computer
    ✅ Subscribe to help us grow: www.youtube.co...
    My Amazon affiliate link:
    Amazon best sellers Computers and Accessories: amzn.to/37v1Z7Z
    Linux Commands
    Ctrl+Alt+T (to Open terminal)
    sudo apt update
    clear (to clear the screen)
    sudo apt install openssh-server
    sudo systemctl status ssh
    sudo ufw allow ssh
    ip a
    Windows commands:
    ssh user@ipaddress
    Follow me on:
    My websites:
    knowledgeshari...
    tripleewebdesi...
    Facebook: / knowledgesharingtech
    Twitter: / knowledgeshari6
    Disclaimer: Use the instructions in this video at your own risk. We are not responsible for any data loss or other damages that may occur

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

  • @KnowledgeSharingTech
    @KnowledgeSharingTech  3 года назад +1

    For more tutorials, subscribe to my channel, it really makes a difference 💗: ruclips.net/user/knowledgesharingtech

  • @JustinEckert-fn4nu
    @JustinEckert-fn4nu 3 месяца назад +22

    you need to run "sudo systemctl start ssh, then sudo systemctl enable ssh if the status came back as dead (inactive)

    • @lhd7105
      @lhd7105 2 месяца назад +1

      strangely this wasn't mentioned in the tutorial, thank you for adding this note *hugs*

    • @solived1239
      @solived1239 23 дня назад

      @@JustinEckert-fn4nu your comment helped bre thanks

  • @jeremiahharemza1235
    @jeremiahharemza1235 Год назад +32

    Thank you very much. This was helpful. Now I don't have to sit on the floor next to my linux station.

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

    You have no idea the miracle you just did...this problem slowed me down when i was learning Ansible...i tried everything..UFW PORT ENABLING just unlocked everything

  • @aerobrain2001
    @aerobrain2001 8 месяцев назад +3

    As an enthusiastic but not overly technical dabbler in Linux, I’d always assumed SSH was way beyond me. But thank you for making it look so simple, simple things but put a smile on my face when I logged into my Ubuntu machine from my UnRAID terminal :-)
    Thank you!

  • @Shadow_peashooter_1001
    @Shadow_peashooter_1001 Год назад +2

    THANK YOU SO MUCH all the other tutorials assumed i have already downloaded it which i thought i had when i installd the kali linux large

  • @nmarks
    @nmarks 6 месяцев назад +1

    Clear, unfussy instructions which worked first time. Thank you very much. Subscribed. 👍

  • @mincoarmin1260
    @mincoarmin1260 Год назад +2

    You Sir are a life saver
    Thanks to you I can work on my mariadb server on my main pc
    Thank you

  • @TheLightofScience
    @TheLightofScience Год назад +4

    This is great tutorial and straight to the point - thank you so much !!!

  • @rajankumar_37
    @rajankumar_37 11 месяцев назад +3

    Best guide, pretty straight forward! quality content. thanks

  • @dogbyte7875
    @dogbyte7875 6 месяцев назад +1

    Hey Eloy, thanks for the video, it served as a great refresher. I am not as young as I would like to be, and my memory does not seem to function as it used to. I gave you a like and subscribed. Will join next month, as my finances are limited and fixed (social security). Again, much thanks ;)

  • @jardyparty
    @jardyparty Год назад +2

    Perfect, exactly what I was looking for - thank you!

  • @johnali4117
    @johnali4117 Год назад +2

    Does this technique work in NAT? I've noticed that NAT uses different IP address (inet 10.0.2.15/24) while Bridge Adaptor uses 192.168.x.x ip. Also the Ubuntu must be configured to use static IP address. Please comment if this is correct or am I just imagining?

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

      Yes you need to disable DHCP on the network configuration if you want to maintain your IPv4 adress.

  • @pablocarballeira4443
    @pablocarballeira4443 6 месяцев назад +1

    Thank you for the tutorial,but I have a problem, when trying the connection it says "permission denied(publickey)"
    I am using latest ubuntu server for arm in a Pi4

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

    Thanks for the straightforward video!

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

    Excellent. Easy to follow

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

    THANK YOU! Straight to the point

  • @user-jv7mq6zb6m
    @user-jv7mq6zb6m 10 месяцев назад +1

    It was fast and wonderful! Thank you

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

    Excellent clean and to the point.

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

    Great tutorial, thank you!

  • @pranavvats9439
    @pranavvats9439 26 дней назад

    thankyou so very much sir
    this was sooooo sooo sooooooo helpful

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

    Thanks for the tutorial.

  • @faustoricardo8875
    @faustoricardo8875 7 месяцев назад +1

    thanks mate you are the best great video!

  • @YoungSecurity
    @YoungSecurity 10 месяцев назад +1

    At 00:46, it says, "All commands are in the description." The video description does not contain any commands.

    • @KnowledgeSharingTech
      @KnowledgeSharingTech  10 месяцев назад

      Thank you for noting this. I have added the commands now.

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

    You're a hero, thank you

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

    thank you for sharing
    Knowledge

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

    Thank you .. it works

  • @VivekSingh-cq5rt
    @VivekSingh-cq5rt 2 года назад +1

    Really useful. Thank you

  • @87patchinko
    @87patchinko Год назад +1

    thank you very helpful

  • @user_hinth
    @user_hinth 7 месяцев назад +1

    Thanks a lot for your tutorial. Praise to the Almighty Allah,It's working properly.

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

    Helped alot thanks

  • @Valandovchanec
    @Valandovchanec 3 года назад +2

    Thanks for the video..

  • @Rahyss
    @Rahyss 5 месяцев назад +1

    Thank you 👍🏿

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

    Hey great video i didnt know about the ufw allow ssh, but my question is i use virtual box where every machine's ip is the same as the setting is NAT, what setting should i use for it to work?

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

    That was perfect.

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

    Thanks. Simple and straightforward guide.

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

    hello, how can we use ssh server as vpn in windows? I try by netmod but its nit work,I have centos 8 server .thanks

  • @blither592
    @blither592 2 месяца назад

    Hello eloy, half of this video helped me so much with the commands when it comes to ssh for both linux and windows, but I am having some trouble here. So what is the password that we have to put for our ip address? I'm a bit confused

    • @KnowledgeSharingTech
      @KnowledgeSharingTech  2 месяца назад

      You use an existing user on your Linux machine to connect to it. So it's the password for this user

  • @Mateo-pu7xg
    @Mateo-pu7xg 4 месяца назад +1

    Thank you

  • @SHAILESHYADAV-gv6hu
    @SHAILESHYADAV-gv6hu Год назад +1

    Very good 👍

  • @3mre_1233
    @3mre_1233 Год назад +1

    Good Video, thanks

  • @omartusson
    @omartusson 5 месяцев назад +1

    Thank you.

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

    Thank you, Sir, 🙏🌺😇

  • @4evrOk4U
    @4evrOk4U 2 месяца назад +1

    thank,s Done

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

    ❤ thanks i done with your video

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

    mashallah youre the best

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

    Helpfull 💓...

  • @advocate7643
    @advocate7643 5 месяцев назад

    Hi, do I have to run these two commands after every time I turn on my server?

  • @SunilSharma-ng3ow
    @SunilSharma-ng3ow Год назад

    How can we install ssh server through the installation file (.deb), a my linux is not connected to network so need to install locally? Thanks

  • @user-ql8gx3mp4f
    @user-ql8gx3mp4f Год назад

    I have an old machine i want to use as a private server....yesterday all was working fine....not anymore...even on a fresh setup... searching on google leads to the exact same thing or things who break the entire thing.....

  • @user-js3nt7dk8v
    @user-js3nt7dk8v 8 месяцев назад +1

    thanks

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

    Thanks you!

  • @athraafaraj8387
    @athraafaraj8387 3 года назад +1

    Thanks much

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

    thanks!

  • @tobios89p13
    @tobios89p13 2 месяца назад +1

    What do i do when its inactive(dead)?

    • @tobios89p13
      @tobios89p13 2 месяца назад +1

      Never mind i got ot running (:

  • @Okeh189
    @Okeh189 Месяц назад

    not working in mac machine

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

    when both windows and ubuntu are installed on my machine it is working, i am able to connect from my windows machine to my ubuntu machine (where ssh server is installed) , but the same url -when i am trying to connect from diff computer to my ubuntu machine it is saying connection timedout

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

      What are the IPs of the Ubuntu and the remote Win machine?

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

      @@KnowledgeSharingTech ubuntu machines ipaddress is 172.31.62.83 from same windows machine I typed as
      "ssh manideepvv@172.31.62.83"
      It worked (because in ny same lap windows+ubuntu is installed)
      Case 2:- from other windows laptop (192.168.0.110) i was unable to run above ssh command it says timeout

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

      You need to make sure that both networks (172 and 192) can communicate

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

    please i have aproblem when i connect from windows putty to ubuntu server it asked to user name and password i typed
    user name : root
    passord : *******
    i'm sure that password is correct but it answered me that ( access denied )
    what shall i do ?

    • @dodowater6936
      @dodowater6936 6 месяцев назад

      Did you figure out how to get the password? Cause I have the same problem as you.

  • @harsh8135
    @harsh8135 3 месяца назад

    and how to do the same for windows

  • @pravin3870
    @pravin3870 6 месяцев назад

    which password to put after putting our othrr pc IP is that Laptops password or which???
    plz help

    • @harsh8135
      @harsh8135 3 месяца назад

      yup, your machine's ip

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

    Where did the command prompt came from ?

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

      In Linux: Ctrl+Alt+T
      In Windows, type CMD in the search box and hit enter

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

    it is working on only same network.
    How to connect from other network????????

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

      It has nothing to do with SSH. You need connectivity and a route between the 2 networks

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

      @@KnowledgeSharingTech How to do this??

  • @legendshettygaming6113
    @legendshettygaming6113 7 месяцев назад +4

    What is the password for IP address

    • @yavuzselimerdogan429
      @yavuzselimerdogan429 3 месяца назад

      linux login password

    • @adreto2978
      @adreto2978 Месяц назад

      @@legendshettygaming6113 password of user your logging into

  • @shaykren7362
    @shaykren7362 10 месяцев назад

    SMAAAAAAAAAAAAAAAAAAAAAAAAAAAASH

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

    does not work

  • @impliese9983
    @impliese9983 Месяц назад +1

    thank you

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

    It is saying port 22 connect timed out

    • @pepe-perez
      @pepe-perez 6 месяцев назад

      try with port 8022