Тёмный

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

Подписаться
Просмотров 141 тыс.
% 404

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

Опубликовано:

 

25 дек 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 160   
@OmidBeiki
@OmidBeiki 3 года назад
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 5 дней назад
@@SilentSolution Bro you didn't even answer his damn question smh
@ankitraibole7885
@ankitraibole7885 Год назад
first i thought there is issue with my headphone then I read the channel name 😂
@SilentSolution
@SilentSolution Год назад
Thanks for your support
@brunomorandi3650
@brunomorandi3650 3 года назад
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 5 месяцев назад
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 5 месяцев назад
Are you run this command root user or normal user.. please check ufw have enabled or disabled
@alikumail16
@alikumail16 2 года назад
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...
@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 13 дней назад
​@@SilentSolutionhow to change port number?
@BANKALSTECHZONE
@BANKALSTECHZONE 8 месяцев назад
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 8 месяцев назад
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.
@TheHaykokalipsis
@TheHaykokalipsis Год назад
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
@claudiomarques7369
@claudiomarques7369 2 года назад
Great, Situação super resolvida. Many Thanks
@SilentSolution
@SilentSolution 2 года назад
Are you Most welcome... Please like share and subscribe me...
@Black18081
@Black18081 Год назад
Thank you bruh useful tutorial 🤙
@SilentSolution
@SilentSolution Год назад
Are u Most welcome please share this like subscribe me.
@domxz855
@domxz855 Год назад
Hello, i have a question? In 1:45 minutes u type on PowerShell?
@SilentSolution
@SilentSolution Год назад
It's window to Linux serve SSH connect..
@randomraidor
@randomraidor 7 месяцев назад
My Linux server is active and running but still can't access the SSH, it says the connection timed out.
@SilentSolution
@SilentSolution 7 месяцев назад
Please check your firewall allowed port
@attestedatom6752
@attestedatom6752 6 месяцев назад
My Ubuntu server times out every few hours and cannot access it with SSH nor RDC even though it’s still running
@SilentSolution
@SilentSolution 6 месяцев назад
Please check your ssh service running and also check firewall allowed ssh service
@attestedatom6752
@attestedatom6752 6 месяцев назад
@@SilentSolution ufw is disabled
@denlay8587
@denlay8587 Год назад
Thank you for video!
@SilentSolution
@SilentSolution Год назад
Are you Most welcome... Please like share and subscribe me
@amirsedarat9013
@amirsedarat9013 Год назад
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 Год назад
I think allowed ssh service and Port your firewall...
@amirsedarat9013
@amirsedarat9013 Год назад
@@SilentSolution How should I solve this problem?
@SilentSolution
@SilentSolution Год назад
@@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 Год назад
@@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
@akgamingzz
@akgamingzz 2 года назад
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...
@shreevanidanai3180
@shreevanidanai3180 2 года назад
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 2 месяца назад
I am also facing same issue
@mcfundingusa4583
@mcfundingusa4583 8 месяцев назад
Brother How would run the comman sudo UFW disable when I cant even enter into my server ???
@SilentSolution
@SilentSolution 8 месяцев назад
sudo ufw enable
@stupidaudience5354
@stupidaudience5354 3 года назад
Ufw status : inactive but still the same connection refuse , is there another solution?
@SilentSolution
@SilentSolution 3 года назад
Ufw restart
@SilentSolution
@SilentSolution 3 года назад
@@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 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-m7DpSQOp07U.html
@adoniskomplex91
@adoniskomplex91 3 года назад
Any solution to this problem?
@SilentSolution
@SilentSolution 3 года назад
@@adoniskomplex91 yes
@vaibhavsingh9970
@vaibhavsingh9970 Год назад
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
@nguyenxuanngoc6782
@nguyenxuanngoc6782 Месяц назад
You are my savior. Thanks so much
@SilentSolution
@SilentSolution Месяц назад
You are most welcome please share this video and like subscribe me 🙏
@user-uz7es1vq4n
@user-uz7es1vq4n 5 месяцев назад
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 5 месяцев назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ozKtuzIHdLU.htmlsi=g44bWbHv4kca5TfP please see
@sakthiselvitamil3435
@sakthiselvitamil3435 5 месяцев назад
Thanks for your response brother I got solution afternoon still thank you so much for yours kind response ​@@SilentSolution
@viperrko2068
@viperrko2068 3 месяца назад
finally i got the solution.thank you genius
@SilentSolution
@SilentSolution 3 месяца назад
You are most welcome please share this video and like subscribe me
@jatingoyal4947
@jatingoyal4947 2 года назад
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
@kaashvi265
@kaashvi265 2 года назад
Tqq sir..
@SilentSolution
@SilentSolution 2 года назад
Are you most welcome ❤️ my dear please share this and like subscribe 🙏
@Ayusharma114
@Ayusharma114 22 дня назад
when i am not able to enter in ubuntu how will i run sudo ufw commans you showing
@SilentSolution
@SilentSolution 21 день назад
I'm facing this type of problem same way solution this video
@Ayusharma114
@Ayusharma114 21 день назад
@@SilentSolution but i can't enter in ubuntu how to write then
@ieltsenglishpractice4705
@ieltsenglishpractice4705 2 года назад
Great
@SilentSolution
@SilentSolution 2 года назад
Thanks for your compliments
@chandangupta-sv6fd
@chandangupta-sv6fd 3 года назад
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 года назад
Aap intasgram I'd de do m screenshot bhejta hu
@PRASHANTKUMAR-te3ef
@PRASHANTKUMAR-te3ef 3 года назад
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 года назад
@@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 года назад
@@SilentSolution India bro & u
@SilentSolution
@SilentSolution 3 года назад
@@PRASHANTKUMAR-te3ef give me your whatsApp 01741479699
@magdy7308
@magdy7308 3 года назад
i got sudo ufw commend not found ! please help
@SilentSolution
@SilentSolution 3 года назад
Which Linux use.
@magdy7308
@magdy7308 3 года назад
Kali
@SilentSolution
@SilentSolution 3 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-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:-
@omarjourieh3533
@omarjourieh3533 Год назад
Thx❤❤
@SilentSolution
@SilentSolution Год назад
You are most welcome please share this video and like subscribe me 💗🙏
@vainilk78
@vainilk78 2 года назад
Dude you need to add audio to this video.
@SilentSolution
@SilentSolution 2 года назад
Thanks for your information.. try this my dear friend ❤️
@telmosantos8673
@telmosantos8673 3 года назад
I have one Mac, unfortunately I cant solve for this way..
@SilentSolution
@SilentSolution 3 года назад
Try this ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9zszQIODHNM.html
@telmosantos8673
@telmosantos8673 3 года назад
@@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 года назад
@@telmosantos8673 Are you most welcome ❤️ my dear friend. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RD80amGtqL4.html try again
@telmosantos8673
@telmosantos8673 3 года назад
@@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 ❣️
@samirmishra9946
@samirmishra9946 2 года назад
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
@pjmclenon
@pjmclenon 2 месяца назад
destination host unreachable--can anyone help? thxz---Lisa
@SilentSolution
@SilentSolution 2 месяца назад
Yes please check your firewall have enable or SSH sever active?
@SilentSolution
@SilentSolution 2 месяца назад
Please check your SSH sever active and firewall have enable with service allowed
@pjmclenon
@pjmclenon 2 месяца назад
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 2 месяца назад
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
@paullopez9278
@paullopez9278 Год назад
Thanks
@SilentSolution
@SilentSolution Год назад
You are most welcome please share this video and like subscribe me
@balaruhan5024
@balaruhan5024 Год назад
Pls someone help me it kept showing fatal error
@SilentSolution
@SilentSolution Год назад
Please follow discription and video I think it's solve
@BenSGeorge
@BenSGeorge 9 месяцев назад
Thank you
@SilentSolution
@SilentSolution 9 месяцев назад
You are most welcome please share this video and like subscribe 🙏
@someprogrammer9800
@someprogrammer9800 3 года назад
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)
@coolshorts8958
@coolshorts8958 2 года назад
how to download sudo plz tell me
@SilentSolution
@SilentSolution 2 года назад
Why sudo download....
@SirSpiroSZN
@SirSpiroSZN 2 месяца назад
You fucking legend ❤
@SilentSolution
@SilentSolution 2 месяца назад
Thanks for your compliment
@afgan_gadirov
@afgan_gadirov 5 месяцев назад
How can we end ssh connection from server side?
@SilentSolution
@SilentSolution 5 месяцев назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-_eyMUtMiCWg.html please see this
@afgan_gadirov
@afgan_gadirov 5 месяцев назад
@@SilentSolution I did not find the solution on the video
@SilentSolution
@SilentSolution 5 месяцев назад
what are u facing please give me your problem @@afgan_gadirov
@afgan_gadirov
@afgan_gadirov 5 месяцев назад
I want to end ssh connection but from server side not client side.@@SilentSolution
@balaruhan5024
@balaruhan5024 Год назад
Bro why didn't work for my Ubuntu
@SilentSolution
@SilentSolution Год назад
Please SSH sever installation also firewall port allow. I think it's solve
@LexxSandro
@LexxSandro 2 месяца назад
4 request timeout
@SilentSolution
@SilentSolution 2 месяца назад
SSH service enable?
@kko2435
@kko2435 3 года назад
wait u r malaysian?
@SilentSolution
@SilentSolution 3 года назад
what happened to you. my dear
@kko2435
@kko2435 3 года назад
@@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 года назад
@@SilentSolution can i get ur number
@SilentSolution
@SilentSolution 3 года назад
@@kko2435 01741479699
@gourikanisha801
@gourikanisha801 Год назад
I cont see
@SilentSolution
@SilentSolution Год назад
So sad 😭
@creazyengineer8080
@creazyengineer8080 11 месяцев назад
you already logged in ....silent@solution: ............don't fool people......when you open cmd sudo command will not work....
@SilentSolution
@SilentSolution 11 месяцев назад
Have a sudo permeation it's normal user or root user.
@akramraja9010
@akramraja9010 Год назад
Where i type this command
@SilentSolution
@SilentSolution Год назад
Your terminal type this command
@akramraja9010
@akramraja9010 Год назад
@@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
@phuongtran-ws8rg
@phuongtran-ws8rg 8 месяцев назад
its not work
@SilentSolution
@SilentSolution 8 месяцев назад
Please check your ssh service running and also check firewall allowed port and ssh service.
@samirbagamaev93
@samirbagamaev93 Год назад
не помогло
@SilentSolution
@SilentSolution Год назад
И ай аполозы бут и ма ванне саме ваи солютион тхис видео .плеасе сее тхе сш сервер анд фиреваль
@rinaaiko5619
@rinaaiko5619 2 года назад
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 года назад
@@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
@urlodelsium3820
@urlodelsium3820 Год назад
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