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

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น • 134

  • @KnowledgeSharingTech
    @KnowledgeSharingTech  4 ปีที่แล้ว +1

    For more tutorials, subscribe to my channel, it really makes a difference 💗: th-cam.com/users/knowledgesharingtech

  • @JustinEckert-fn4nu
    @JustinEckert-fn4nu 7 หลายเดือนก่อน +67

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

    • @lhd7105
      @lhd7105 6 หลายเดือนก่อน +2

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

    • @solived1239
      @solived1239 4 หลายเดือนก่อน

      @@JustinEckert-fn4nu your comment helped bre thanks

    • @falsefortune7726
      @falsefortune7726 3 หลายเดือนก่อน

      thank you, everyone that makes these "tutorials" seem to think it works everytime and skips any trouble shooting

    • @zelven6109
      @zelven6109 3 หลายเดือนก่อน

      its still dead btw

    • @purplevanilla
      @purplevanilla 3 หลายเดือนก่อน +2

      do you need to do this everytime you turn on your computer?

  • @peterrchimaa
    @peterrchimaa ปีที่แล้ว +2

    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

  • @jeremiahharemza1235
    @jeremiahharemza1235 ปีที่แล้ว +37

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

    • @miguelescutia5556
      @miguelescutia5556 2 หลายเดือนก่อน

      You can still sit on the floor next to your Windows machine.

  • @Shadow_peashooter_1001
    @Shadow_peashooter_1001 ปีที่แล้ว +3

    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

  • @mincoarmin1260
    @mincoarmin1260 ปีที่แล้ว +3

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

  • @dogbyte7875
    @dogbyte7875 10 หลายเดือนก่อน +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 ;)

  • @YoungSecurity
    @YoungSecurity ปีที่แล้ว +2

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

  • @nmarks
    @nmarks 10 หลายเดือนก่อน +1

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

  • @rajankumar_37
    @rajankumar_37 ปีที่แล้ว +4

    Best guide, pretty straight forward! quality content. thanks

  • @johnali4117
    @johnali4117 ปีที่แล้ว +4

    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.

    • @Saidkus
      @Saidkus 3 หลายเดือนก่อน

      The only thing you need to do is to change the setting of VM network. By coming From NAT to Bridge Adapter, your VM will have its own IP as if it is your real host.

  • @filliposimamora
    @filliposimamora 2 หลายเดือนก่อน +1

    bro, im really love you, you fixed my heart, my brain, my stress and my program, really thx

  • @aerobrain2001
    @aerobrain2001 ปีที่แล้ว +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!

  • @advocate7643
    @advocate7643 9 หลายเดือนก่อน +1

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

  • @TheLightofScience
    @TheLightofScience 2 ปีที่แล้ว +5

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

  • @Valksforge
    @Valksforge 2 หลายเดือนก่อน

    So this can be done the other way around “Connect FROM my personal computer Ubuntu terminal TO datacenter SSH Dedicated Server terminal” A full control from my house to the datacenter em I right? Sorry I’m new to this and wanted to learn more 🙏.

  • @pablocarballeira4443
    @pablocarballeira4443 10 หลายเดือนก่อน +2

    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

  • @Balajiji4888
    @Balajiji4888 หลายเดือนก่อน +1

    Thanks Bro

  • @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

  • @jardyparty
    @jardyparty ปีที่แล้ว +2

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

  • @pranavvats9439
    @pranavvats9439 4 หลายเดือนก่อน

    thankyou so very much sir
    this was sooooo sooo sooooooo helpful

  • @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?

  • @Vizio_Foreign
    @Vizio_Foreign หลายเดือนก่อน

    Maybe this is a stupid question, but if the system is powered on without a display, would it not be stuck on the user login screen? Or do you have to disable/ ssh just bypass it?

    • @KnowledgeSharingTech
      @KnowledgeSharingTech  หลายเดือนก่อน

      SSH starts as a service

    • @Vizio_Foreign
      @Vizio_Foreign หลายเดือนก่อน

      @@KnowledgeSharingTech thank you for the fast response, so ssh starts when the system boots, regardless if the Ubuntu user has logged in?

  • @JReese2013
    @JReese2013 2 ปีที่แล้ว +1

    Thanks for the straightforward video!

  • @YanaLukomskaya
    @YanaLukomskaya ปีที่แล้ว +1

    It was fast and wonderful! Thank you

  • @SunilSharma-ng3ow
    @SunilSharma-ng3ow 2 ปีที่แล้ว

    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

  • @faustoricardo8875
    @faustoricardo8875 11 หลายเดือนก่อน +1

    thanks mate you are the best great video!

  • @tobios89p13
    @tobios89p13 6 หลายเดือนก่อน +1

    What do i do when its inactive(dead)?

    • @tobios89p13
      @tobios89p13 6 หลายเดือนก่อน +1

      Never mind i got ot running (:

  • @kazsid2995
    @kazsid2995 ปีที่แล้ว +1

    Excellent. Easy to follow

  • @user_hinth
    @user_hinth 11 หลายเดือนก่อน +1

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

  • @EpicVideoTime4You
    @EpicVideoTime4You ปีที่แล้ว +1

    THANK YOU! Straight to the point

  • @Lizard1370Mc
    @Lizard1370Mc หลายเดือนก่อน

    On my windows pc when I ssh to my server it says “Permission denied, please try again.” But I have the password right

  • @blither592
    @blither592 6 หลายเดือนก่อน

    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  6 หลายเดือนก่อน

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

  • @ibrarali4592
    @ibrarali4592 ปีที่แล้ว +1

    thank you for sharing
    Knowledge

  • @francon9586
    @francon9586 ปีที่แล้ว +1

    Thanks for the tutorial.

  • @Chris-nq3ri
    @Chris-nq3ri 2 หลายเดือนก่อน +1

    nice dude thx!!

  • @marlonnoto4116
    @marlonnoto4116 2 ปีที่แล้ว +1

    Thanks. Simple and straightforward guide.

  • @thebzz2299
    @thebzz2299 2 ปีที่แล้ว +1

    Excellent clean and to the point.

  • @leleemagnu6831
    @leleemagnu6831 2 ปีที่แล้ว +1

    Great tutorial, thank you!

  • @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

  • @FlorianLabridy
    @FlorianLabridy ปีที่แล้ว

    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.....

  • @santoshgujar5237
    @santoshgujar5237 ปีที่แล้ว +1

    Thank you, Sir, 🙏🌺😇

  • @nguyenthethinh9014
    @nguyenthethinh9014 2 หลายเดือนก่อน

    Great, but my friend needed to connect into my ssh server and we used 2 different wifi. So he could not connect, do everyone know how to solve this situation ??

  • @pravin3870
    @pravin3870 10 หลายเดือนก่อน

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

    • @harsh8135
      @harsh8135 7 หลายเดือนก่อน

      yup, your machine's ip

  • @TylerrTheMasterBaiter
    @TylerrTheMasterBaiter ปีที่แล้ว

    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

  • @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 10 หลายเดือนก่อน

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

  • @Rahyss
    @Rahyss 9 หลายเดือนก่อน +1

    Thank you 👍🏿

  • @xxmujinscxx3516
    @xxmujinscxx3516 หลายเดือนก่อน

    I keep getting connection timed out when trying to connect to the virtual machine

  • @VivekSingh-cq5rt
    @VivekSingh-cq5rt 3 ปีที่แล้ว +1

    Really useful. Thank you

  • @SHAILESHYADAV-gv6hu
    @SHAILESHYADAV-gv6hu ปีที่แล้ว +1

    Very good 👍

  • @Valandovchanec
    @Valandovchanec 4 ปีที่แล้ว +2

    Thanks for the video..

  • @kevinoudai6455
    @kevinoudai6455 2 ปีที่แล้ว +1

    Helped alot thanks

  • @87patchinko
    @87patchinko ปีที่แล้ว +1

    thank you very helpful

  • @judeberri
    @judeberri 3 ปีที่แล้ว +2

    You're a hero, thank you

  • @microsoftskill8191
    @microsoftskill8191 ปีที่แล้ว +1

    ❤ thanks i done with your video

  • @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??

  • @chukong5
    @chukong5 2 ปีที่แล้ว +1

    Thank you .. it works

  • @Mateo-pu7xg
    @Mateo-pu7xg 8 หลายเดือนก่อน +1

    Thank you

  • @bretthl1
    @bretthl1 ปีที่แล้ว +1

    That was perfect.

  • @harsh8135
    @harsh8135 7 หลายเดือนก่อน

    and how to do the same for windows

  • @omartusson
    @omartusson 9 หลายเดือนก่อน +1

    Thank you.

  • @Okeh189
    @Okeh189 5 หลายเดือนก่อน

    not working in mac machine

  • @3mre_1233
    @3mre_1233 ปีที่แล้ว +1

    Good Video, thanks

  • @rutikkhandekar2518
    @rutikkhandekar2518 2 ปีที่แล้ว +1

    Helpfull 💓...

  • @DAYSHIVANSH
    @DAYSHIVANSH ปีที่แล้ว

    It is saying port 22 connect timed out

    • @pepe-perez
      @pepe-perez 10 หลายเดือนก่อน

      try with port 8022

  • @perfrivik9932
    @perfrivik9932 2 ปีที่แล้ว +1

    mashallah youre the best

  • @NathanielMujesia
    @NathanielMujesia ปีที่แล้ว +1

    thanks

  • @4evrOk4U
    @4evrOk4U 6 หลายเดือนก่อน +1

    thank,s Done

  • @athraafaraj8387
    @athraafaraj8387 3 ปีที่แล้ว +1

    Thanks much

  • @o0Vion70o
    @o0Vion70o ปีที่แล้ว +1

    Thanks you!

  • @youfelixx
    @youfelixx ปีที่แล้ว

    thanks!

  • @legendshettygaming6113
    @legendshettygaming6113 11 หลายเดือนก่อน +3

    What is the password for IP address

    • @yavuzselimerdogan429
      @yavuzselimerdogan429 7 หลายเดือนก่อน

      linux login password

    • @adreto2978
      @adreto2978 5 หลายเดือนก่อน

      @@legendshettygaming6113 password of user your logging into

  • @shaykren7362
    @shaykren7362 ปีที่แล้ว

    SMAAAAAAAAAAAAAAAAAAAAAAAAAAAASH

  • @ddubz6356
    @ddubz6356 ปีที่แล้ว

    does not work

  • @Valksforge
    @Valksforge 2 หลายเดือนก่อน

    So this can be done the other way around “Connect FROM my personal computer Ubuntu terminal TO datacenter SSH Dedicated Server terminal” A full control from my house to the datacenter em I right? Sorry I’m new to this and wanted to learn more 🙏.

    • @KnowledgeSharingTech
      @KnowledgeSharingTech  2 หลายเดือนก่อน

      Well, if you have a network connection from your house to the data center then yes

  • @impliese9983
    @impliese9983 5 หลายเดือนก่อน +1

    thank you

  • @luciano5026
    @luciano5026 2 หลายเดือนก่อน +1

    Thank you