fix ssh : connect to host port 22: connection time out

Поделиться
HTML-код
  • Опубликовано: 6 окт 2024
  • Firewall will block all incoming connections by default. check your firewall settings or use private network to SSL. error message means the server to which you are connecting does not reply to SSH connection attempts on port 22.
    #ssh : connect to host port 22: connection time out #fix ssh: connect to host port 22: Connection time out
    Need to Firewall Disable
    First Checking Your Firewall Status :
    Go to Control Panel +Windows Defender Firewall+Change Notification Setting
    For Ubuntu :
    sudo ufw status
    sudo ufw disable
    Above not working follow this
    #how to fix ssh: connect to host port 22 : connection refused
    1.First Checking have Install SSH
    2.Not Install SSH than Installed it's
    3.SSH Restart
    4.SSH Enable.
    5.Checking SSH Status .
    6. Must Be Active (Status Running)
    error: Permission denied
    Change Your User go to Root User:-
    $sudo -i
    Install SSH :-
    sudo apt-get update
    sudo apt-get install ssh
    systemctl restart ssh.service
    systemctl enable ssh.service
    systemctl status ssh.service
    #silentsolution

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

  • @OmidBeiki
    @OmidBeiki 3 года назад +7

    Thank you for video. I cannot access to putty receiving connection error. How can I do what you showed in video while I have not access to my putty. SUDO commands are not working in my CMD! SSH is installed in my windows 10 and I activated it.

    • @SilentSolution
      @SilentSolution  3 года назад

      Are you most welcome ❤️

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

      @@SilentSolution Bro you didn't even answer his damn question smh

  • @ankitr2969
    @ankitr2969 Год назад +12

    first i thought there is issue with my headphone then I read the channel name 😂

  • @brunomorandi3650
    @brunomorandi3650 3 года назад +5

    Awesome, worked for me. I don't understand why but this happened all of a sudden, i always got ssh access before (with ufw active). On last time, i acessed ssh to install the chat for nexcloud, and after this, i couldn't access ssh again (SSH connection attempts on port 22). Now, deactivating ufw i managed to access again, thanks.

    • @SilentSolution
      @SilentSolution  3 года назад

      Are you most welcome ❤️ my dear friend ❤️ please share this and subscribe ❣️🙏 please enable SSH service

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

    sudo : The term 'sudo' is not recognized as the name of a cmdlet, function, script file, or operable pro
    gram. Check the spelling of the name, or if a path was included, verify that the path is correct and try
    again.
    At line:1 char:1
    + sudo ufw status
    + ~~~~
    + CategoryInfo : ObjectNotFound: (sudo:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

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

      Are you run this command root user or normal user.. please check ufw have enabled or disabled

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

    And how would you do that ufw disable command if you CAN NOT CONNECT VIA SSH????

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

      Please check your ssh service active or deactivate also firewall SSH allowed

  • @attestedatom6752
    @attestedatom6752 9 месяцев назад +2

    My Ubuntu server times out every few hours and cannot access it with SSH nor RDC even though it’s still running

    • @SilentSolution
      @SilentSolution  9 месяцев назад

      Please check your ssh service running and also check firewall allowed ssh service

    • @attestedatom6752
      @attestedatom6752 9 месяцев назад

      @@SilentSolution ufw is disabled

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

      how you reslove this issue?

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

    cant ssh into linux machine from one windows 11 machine ( example robot client), while i can ssh into same server from all other machine. i have disable firewall on both side server and client machine, i have rebooted windows clinet machine but still no luck.

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

      Your ssh service running? Also check Linux firewall allowed ssh service. Pink insured both machine.if have both machine pink than u can ssh login.

  • @Ayusharma114
    @Ayusharma114 3 месяца назад +1

    when i am not able to enter in ubuntu how will i run sudo ufw commans you showing

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

      I'm facing this type of problem same way solution this video

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

      @@SilentSolution but i can't enter in ubuntu how to write then

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

    My Linux server is active and running but still can't access the SSH, it says the connection timed out.

    • @SilentSolution
      @SilentSolution  9 месяцев назад

      Please check your firewall allowed port

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

    The second terninal what is that? I use windows and cannot access putty

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

      I used Windows cmd, ubuntu terminal also used mobaxtrim like putty software.. Need SHS services status active...

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

    Brother How would run the comman sudo UFW disable when I cant even enter into my server ???

  • @nguyenxuanngoc6782
    @nguyenxuanngoc6782 3 месяца назад +1

    You are my savior. Thanks so much

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

      You are most welcome please share this video and like subscribe me 🙏

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

    im nt using firewall ratherthan im facing the same problm after checking status of firewall their is no solution.
    thnx for this knowledge but it not work perfectly sir

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

      Thanks for your compliment please.. check SSH service and firewall allowed

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

    Hello, i have a question? In 1:45 minutes u type on PowerShell?

  • @stupidaudience5354
    @stupidaudience5354 3 года назад +3

    Ufw status : inactive but still the same connection refuse , is there another solution?

    • @SilentSolution
      @SilentSolution  3 года назад

      Ufw restart

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

      @@melo_97 .
      This video i thinks working but not solve this follow this
      First Checking have Install SSH
      2.Not Install SSH than Installed it's
      3.SSH Restart
      4.SSH Enable.
      5.Checking SSH Status .
      6. Must Be Active (Status Running)
      error: Permission denied
      Change Your User go to Root User:-
      $sudo -i
      Install SSH :-
      sudo apt-get update
      sudo apt-get install ssh
      systemctl restart ssh.service
      systemctl enable ssh.service
      systemctl status ssh.service

    • @SilentSolution
      @SilentSolution  3 года назад

      @@melo_97 ruclips.net/video/m7DpSQOp07U/видео.html

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

      Any solution to this problem?

    • @SilentSolution
      @SilentSolution  3 года назад

      @@adoniskomplex91 yes

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

    If in case it's an office laptop and changing these settings is not allowed then how to fix this issue in mobaxterm...could you please provide solution?

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

      Some time Third parti application have problems but you used vm or bare martel os?

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

      I am also facing same issue

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

    I bought a VPS server, its IP is not filtered, and the firewall on the server is also turned off
    But I can't connect to my server through SSH and Putty software!
    Thank you for your guidance

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

      I think allowed ssh service and Port your firewall...

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

      @@SilentSolution How should I solve this problem?

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

      @@amirsedarat9013 1.First Checking have Install SSH
      2.Not Install SSH than Installed it's
      3.SSH Restart
      4.SSH Enable.
      5.Checking SSH Status .
      6. Must Be Active (Status Running)
      error: Permission denied
      Change Your User go to Root User:-
      $sudo -i
      Install SSH :-
      sudo apt-get update
      sudo apt-get install ssh
      systemctl restart ssh.service
      systemctl enable ssh.service
      systemctl status ssh.service

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

      @@SilentSolution I followed the instructions line by line
      SSH service is installed and active
      Even if it is necessary and of course you want, I will send you the server details

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

      @@amirsedarat9013 ok

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

    Thank you sooooo much. You saved me a lot of time.

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

      Are you most welcome ❤️ my dear friend ❤️ please share this and like subscribe 🙏 Thanks for your compliments...

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

    brother actually i enabled my nfw and i forgot to add my default port ,now the thing is my connection was closed and i cant able to connect the server is there any way to connect .

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

      ruclips.net/video/ozKtuzIHdLU/видео.htmlsi=g44bWbHv4kca5TfP please see

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

      Thanks for your response brother
      I got solution afternoon still thank you so much for yours kind response ​@@SilentSolution

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

    destination host unreachable--can anyone help? thxz---Lisa

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

      Yes please check your firewall have enable or SSH sever active?

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

      Please check your SSH sever active and firewall have enable with service allowed

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

      hello thank you but i have tried many things 1. disable ufw on wsl2 2.disable defender firewall on windows10 3. allow port 22 on VM ubuntu20 4.server and client active both client and server machines , which are just my 2 host win10 machines on local network same subnet--always cant reach destination--Lisa

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

      hello see my reply---but for the client machine (win10 w/ VM ubuntu) only ssh client needs to be installed and active? and on the server machine (win10 VM ubuntu) only the ssh server needs to be active installed?----i installed both ssh client and server on both vm--also i tried by win10 cli and same thing--disanbe firewall allow port22--configure ssh_config file --always destaination not reachable--Lisa

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

    I m facing connection timed out error on mobaxterm ....pls help in this

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

      Please check your SSH server is enabled also firewal port allow

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

    i got sudo ufw commend not found ! please help

    • @SilentSolution
      @SilentSolution  3 года назад

      Which Linux use.

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

      Kali

    • @SilentSolution
      @SilentSolution  3 года назад

      ruclips.net/video/m7DpSQOp07U/видео.html

    • @SilentSolution
      @SilentSolution  3 года назад

      1.First Checking have Install SSH
      2.Not Install SSH than Installed it's
      3.SSH Restart
      4.SSH Enable.
      5.Checking SSH Status .
      6. Must Be Active (Status Running)
      error: Permission denied
      Change Your User go to Root User:-

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

    finally i got the solution.thank you genius

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

      You are most welcome please share this video and like subscribe me

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

    Dude! Awesome!!! I was getting a headache with that :). But is it safe without a firewall ?...

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

      Thanks for your compliment.. without firewall not safe some time.. but you can change your default Port number.. please share this video and like subscribe me..

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

      ​@@SilentSolutionhow to change port number?

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

    Great, Situação super resolvida. Many Thanks

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

      Are you Most welcome... Please like share and subscribe me...

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

    you already logged in ....silent@solution: ............don't fool people......when you open cmd sudo command will not work....

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

      Have a sudo permeation it's normal user or root user.

  • @chandangupta-sv6fd
    @chandangupta-sv6fd 3 года назад +2

    Not work in Termux plz help and reply
    Error is port 22 connection refused

    • @SilentSolution
      @SilentSolution  3 года назад

      1.First Checking have Install SSH
      2.Not Install SSH than Installed it's
      3.SSH Restart
      4.SSH Enable.
      5.Checking SSH Status .
      6. Must Be Active (Status Running)

    • @SilentSolution
      @SilentSolution  3 года назад

      Connection refused error by port 22.because of several reasons like SSH service is not running, the port is blocked by the firewall, or the server is using a different port.

    • @chandangupta-sv6fd
      @chandangupta-sv6fd 3 года назад

      @@SilentSolution but why do it

    • @chandangupta-sv6fd
      @chandangupta-sv6fd 3 года назад

      Openssh intalled

    • @chandangupta-sv6fd
      @chandangupta-sv6fd 3 года назад +1

      Aap intasgram I'd de do m screenshot bhejta hu

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

    Pls someone help me it kept showing fatal error

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

      Please follow discription and video I think it's solve

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

    How can we end ssh connection from server side?

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

      ruclips.net/video/_eyMUtMiCWg/видео.html
      please see this

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

      @@SilentSolution I did not find the solution on the video

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

      what are u facing please give me your problem @@afgan_gadirov

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

      I want to end ssh connection but from server side not client side.@@SilentSolution

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

    Im unable to ping the server. Please help?

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

      Thanks for Your information.. Are u run VM machines? Please check York network setting change first ADOPTER NAT AND second SET BRIDGES please see this video add discretion follow

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

    Bro why didn't work for my Ubuntu

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

      Please SSH sever installation also firewall port allow. I think it's solve

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

    how to download sudo plz tell me

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

    still i got connection timed out

    • @SilentSolution
      @SilentSolution  3 года назад

      1.First Checking have Install SSH
      2.Not Install SSH than Installed it's
      3.SSH Restart
      4.SSH Enable.
      5.Checking SSH Status .
      6. Must Be Active (Status Running)

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

    I have one Mac, unfortunately I cant solve for this way..

    • @SilentSolution
      @SilentSolution  3 года назад

      Try this ruclips.net/video/9zszQIODHNM/видео.html

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

      @@SilentSolution Thanks for return, I have checked. My problem is: I have tried to connect in one Virtual Machine on Digital Ocean, the VM has one user and password. I tried to add a SSH-Key and tried to access by password, in both situations i couldnt. The terminal stay stopped and after one time return with time out. I checked the SSHD_Config. I dont know what happened. Thanks in advance.

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

      @@telmosantos8673 Are you most welcome ❤️ my dear friend. ruclips.net/video/RD80amGtqL4/видео.html try again

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

      @@SilentSolution Hello friend, thank you for the second return, now its Ok, my problem were VPN connection, the problem has been fixed. Thank you

    • @SilentSolution
      @SilentSolution  3 года назад

      @@telmosantos8673 are you most welcome ❤️ my dear friend ❤️ please share,like this and subscribe ❣️

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

    You fucking legend ❤

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

    Where i type this command

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

      Your terminal type this command

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

      @@SilentSolution i typed bt nothing showing

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

      @@akramraja9010 please installation ssh server and start ssh server i thinks it's solve

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

      @@SilentSolution how to install

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

      for ubuntu : sudo apt install openssh-server
      sudo systemctl enable ssh
      sudo ufw allow ssh
      sudo systemctl start ssh
      sudo systemctl enable ssh

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

    4 request timeout

  • @PRASHANTKUMAR-te3ef
    @PRASHANTKUMAR-te3ef 3 года назад +1

    In secure crt ,I am facing same issue, please anyone want to help me,how can I fix this

    • @SilentSolution
      @SilentSolution  3 года назад

      1.First Checking have Install SSH
      2.Not Install SSH than Installed it's
      3.SSH Restart
      4.SSH Enable.
      5.Checking SSH Status .
      6. Must Be Active (Status Running)
      Also see this vedio this

    • @PRASHANTKUMAR-te3ef
      @PRASHANTKUMAR-te3ef 3 года назад +1

      @@SilentSolution all things are correct bro, could you please please help me ,by anydesk,some emergency bro, please

    • @SilentSolution
      @SilentSolution  3 года назад

      @@PRASHANTKUMAR-te3ef where are u from

    • @PRASHANTKUMAR-te3ef
      @PRASHANTKUMAR-te3ef 3 года назад +1

      @@SilentSolution India bro & u

    • @SilentSolution
      @SilentSolution  3 года назад

      @@PRASHANTKUMAR-te3ef give me your whatsApp 01741479699

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

    Dude you need to add audio to this video.

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

      Thanks for your information.. try this my dear friend ❤️

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

    Thank you bruh useful tutorial 🤙

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

      Are u Most welcome please share this like subscribe me.

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

    Great

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

    Tqq sir..

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

      Are you most welcome ❤️ my dear please share this and like subscribe 🙏

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

    Thanks

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

      You are most welcome please share this video and like subscribe me

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

    I cont see

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

    Thx❤❤

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

      You are most welcome please share this video and like subscribe me 💗🙏

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

    didnt work

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

      I am apologize for this inconvenience.. but when I am facing problems same way solution this my dear.. see this vedio and discricription follow..

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

      @@SilentSolution I was getting connection timed out now it says connection refused even after disabling firewall on both computers

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

      @@joeschmoe435 i am really apology for this inconsistencies.. But when i am facing problem same way solution this.. Please check York vm network have just NAT? Please check Your vm network setting change First Bridged mod and second NAT also SSH and allow fri wall Port add

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

      @@SilentSolution I got it in now by putting the device name and user before IP. So devicename\user@ipaddress - But now it's asking for a password which I never even set so I have no idea what it is

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

      @@joeschmoe435 it’s your user Password same Tarminal Password

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

    не помогло

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

      И ай аполозы бут и ма ванне саме ваи солютион тхис видео .плеасе сее тхе сш сервер анд фиреваль

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

    Thank you

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

      You are most welcome please share this video and like subscribe 🙏

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

    wait u r malaysian?

    • @SilentSolution
      @SilentSolution  3 года назад

      what happened to you. my dear

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

      @@SilentSolution I still can't do it

    • @SilentSolution
      @SilentSolution  3 года назад

      Your ssh sever status is active or have installation please check discrimination

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

      @@SilentSolution can i get ur number

    • @SilentSolution
      @SilentSolution  3 года назад

      @@kko2435 01741479699

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

    Thank you for video!

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

      Are you Most welcome... Please like share and subscribe me

  • @phuongtran-ws8rg
    @phuongtran-ws8rg 11 месяцев назад

    its not work

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

      Please check your ssh service running and also check firewall allowed port and ssh service.

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

    It doesn't work

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

      I'm really apologize but I am facing this type problem same way solution this. Please see you SSH service and. Allow firewall SSH I think it's solve