I'm creating a hetzner new cloud server. I can't log in with the information sent to my e-mail address. How can I solve this problem? I can't understand the problem.
Looks like the SSH service is not starting when you reboot the Ubuntu. To set it up so that it starts when you reboot the Ubuntu or Linux machine, run this BASH command in the terminal window. sudo systemctl enable ssh To manually start it use this command. sudo systemctl start ssh
If the Orange Pi is physically accessible, connect a HDMI monitor to the Orange Pi, and install the OpenSSH server. If it is an Android based Orange Pi, you can use xRDP if you know the IP address. I hope it helps.
Hello sir, what if my ubuntu server has installed the openssh, but it still refuse my connect when I try to connect to the server by another ubuntu device (in VM too), how to solve this problem? Tysm
If your VM is sharing the same IP address as your base computer and both VM and base computer is using port number 22, then you will get into a pickle. There are essentially 2 ways to solve this problem. 1) Make your VM NIC card as NAT, and that way your VM will receive a different IP address from base computer. 2) Change your base computer SSH port number to say 123 in /etc/ssh/sshd_config using a text editor. After that restart the SSH service using the "service ssh restart" command or simply power cycle your base computer. I hope that helps, if not drop me another comment.
If you're using Microsoft Windows, check your Windows Firewall. It is not recommended, but just as a test, disable all your firewalls for a moment, and then try connecting the SSH again.
again i find another video showing connection refues on the windows side , instead the real issue is ssh into windows from a linux for example , it just wont work even if you reinstall the modules form powershell
How would i go about this for a centos server my centos server randomly stopped working for port 22 and it wont let me login but it says the status is online
For Centos, use these commands. Let me know if that works for you. Install OpenSSH server sudo yum install openssh-server Start the SSH service sudo systemctl start sshd Restart the SSH service sudo systemctl restart sshd Check the firewall status sudo firewall-cmd --state
Can you run this command one more time in your Linux session (BASH environment). sudo apt install openssh-server This installs OpenSSH Server package in your Linux machine. Also make sure there is no error when you run this command. Also to make sure that the SSH Server (in the Linux machine) is indeed running, run this command. It should show a message in greed "active (running)". systemctl status ssh If that checks out, but still not able to establish SSH connection, make sure that the firewall is not running in your Linux machine. Using this command. ufw status It should output "Status: inactive" to indicate firewall in the Linux machine is disabled. Also make sure that your Windows firewall is turned off for this test. Either one of these debugging method should fix the problem.
There could be an array of things that might be blocking your access. 1) Is the SSH server installed in your remote machine? 2) What SSH server are you using? 3) From your client machine are you able to do ping to the remote machine? 4) Is there firewall setup in the remote machine? Try these commands if you are using Linux system. Works in Debain too. a) Show all app with firewall access ufw app list b) Allow SSH access. sudo ufw allow ssh You can also allow via port number is it is a customized port number. sudo ufw allow 22 NOTE that ufw is not always available in most Linux system. To install ufw, use this command. Update system files first... sudo apt-get update && sudo apt-get upgrade Then install UFW package. sudo apt-get install ufw I hope that gets you in the right direction in debugging your issue. If not, drop us a message again. Cheeers!
Thank you for your uplifting comment on my TH-cam channel. Your words put a smile on my face and brightened my day. I truly appreciate your continued support. Wishing you all the best!
I watched many explanations about the hetzner 22 port solution, but none of them was a solution, putty does not login, only Bitvise SSH Client logs in, not with the root password sent to your e-mail address, you can log in when you create a root password from the hetzner panel, I solved the solution in this way
The black screen with large fonts are in Command Prompt, and and black screen with smaller fonts are in VMWare Player console session. I hope that answers your question.
There are couple of thing you can do and check. 1) Try restarting SSH Service with this command. sudo service ssh restart If you're using a system with systemd (daemon), you can use this command sudo systemctl restart ssh 2) Check log file The SSH log file is located here. Open using any text editor. Alternatively you can use cat, more or less BASH command. I am using Nano as text editor here in the command below. sudo nano /var/log/auth.log 3) Check SSH configuration Using a textt editor check your SSH configuration file. I am using nano as a text editor in the command below. vi and vim will work as well. Check paths in particular. sudo nano /etc/ssh/sshd_config 4) Make sure the permission to SSH configuration file correct. I normally have my ssh configuration file as follows. sudo chmod 600 /etc/ssh/sshd_config sudo chmod 700 /var/run/sshd **** WORST CASE SENARIO **** Worst case scenario, reinstall SSH. Make sure that you have console access when doing this. sudo apt-get remove openssh-server sudo apt-get install openssh-server I hope that helps. Good luck!
Thank you so much for your comment! I'm glad my video was helpful to you in resolving the SSH connection refused error on port 22. If you have any other questions or topics you'd like me to cover, feel free to let me know. Thanks again for watching!
Not too sure what password you are referring to. But if you are talking about the SSH password, that will be what you had configured when you initially create your Linux box or VPS.
If you are referring to installing Open SSH server, unfortunately, you do need to install an SSH server to sole capacity to get the SSH service, so that the SSH client can connect to the remote Linux machine.
My SSH is running but still unable to connect, throwing an "Unknown Error"
you helped me so much. i was stuck watching many videos and then i found yours. THANK YOU!
Glad I could help!
I can't still connect after all i done. My server is hetzner. Is there any solution?
I'm creating a hetzner new cloud server. I can't log in with the information sent to my e-mail address. How can I solve this problem? I can't understand the problem.
😃 THANK YOU RABI!!!!!!! I wish I would have seen your video before spending HOURS of frustration.
Thanks for leaving a comment.
I hope we got you a bit further.
SSH is installed but after I type sudo service ssh status it says disabled… how do I enable it ?
Looks like the SSH service is not starting when you reboot the Ubuntu. To set it up so that it starts when you reboot the Ubuntu or Linux machine, run this BASH command in the terminal window.
sudo systemctl enable ssh
To manually start it use this command.
sudo systemctl start ssh
thank you , it was a great help of you, now i can connect to my RPI4 with pace of mind
Glad it helped
Bro, I have installed openssh server and the status is active but i still get this error connection refused !!
Do you have a VPN running/setup on your client machine?
Should I turn my vpn off?
@@rowdybruh4003 turn off proxy and firewall
I got this problem on my orange pi. But how to access the system to repair without connection?
If the Orange Pi is physically accessible, connect a HDMI monitor to the Orange Pi, and install the OpenSSH server.
If it is an Android based Orange Pi, you can use xRDP if you know the IP address.
I hope it helps.
ur amazing bro thank u so much I fix it because of ur video thx
Glad I could help
When I enter the password it say "permission denied and try again" can u help me with that😭
do in root
Wrong passwd cause it can ask you for your root pass and the normall ubuntu/kali user pass
Hello sir, what if my ubuntu server has installed the openssh, but it still refuse my connect when I try to connect to the server by another ubuntu device (in VM too), how to solve this problem? Tysm
If your VM is sharing the same IP address as your base computer and both VM and base computer is using port number 22, then you will get into a pickle. There are essentially 2 ways to solve this problem.
1) Make your VM NIC card as NAT, and that way your VM will receive a different IP address from base computer.
2) Change your base computer SSH port number to say 123 in /etc/ssh/sshd_config using a text editor. After that restart the SSH service using the "service ssh restart" command or simply power cycle your base computer.
I hope that helps, if not drop me another comment.
@@RabiGurungXybernetics tysmmmm, its worked, the first solution
Awesome!
I tried the same and it still shows - "connection refused".
If you're using Microsoft Windows, check your Windows Firewall.
It is not recommended, but just as a test, disable all your firewalls for a moment, and then try connecting the SSH again.
Thank you so much for explaining it well
Glad it was helpful!
again i find another video showing connection refues on the windows side , instead the real issue is ssh into windows from a linux for example , it just wont work even if you reinstall the modules form powershell
What a legend! Thankyou!
How would i go about this for a centos server my centos server randomly stopped working for port 22 and it wont let me login but it says the status is online
For Centos, use these commands. Let me know if that works for you.
Install OpenSSH server
sudo yum install openssh-server
Start the SSH service
sudo systemctl start sshd
Restart the SSH service
sudo systemctl restart sshd
Check the firewall status
sudo firewall-cmd --state
When power off the VM ware then also found same problem again in cmd
Thank you! In my case only when starting the ssh service hahaha 🤦😂
You're welcome!
now why can't it work when I do Linux to windows
Can you run this command one more time in your Linux session (BASH environment).
sudo apt install openssh-server
This installs OpenSSH Server package in your Linux machine.
Also make sure there is no error when you run this command.
Also to make sure that the SSH Server (in the Linux machine) is indeed running, run this command. It should show a message in greed "active (running)".
systemctl status ssh
If that checks out, but still not able to establish SSH connection, make sure that the firewall is not running in your Linux machine. Using this command.
ufw status
It should output "Status: inactive" to indicate firewall in the Linux machine is disabled.
Also make sure that your Windows firewall is turned off for this test.
Either one of these debugging method should fix the problem.
Well explained, thank you!
Thanks for leaving a comment.
Sir network connection timed out error in mobaxterm.plz tell me how to solve fix this problem
There could be an array of things that might be blocking your access.
1) Is the SSH server installed in your remote machine?
2) What SSH server are you using?
3) From your client machine are you able to do ping to the remote machine?
4) Is there firewall setup in the remote machine? Try these commands if you are using Linux system. Works in Debain too.
a) Show all app with firewall access
ufw app list
b) Allow SSH access.
sudo ufw allow ssh
You can also allow via port number is it is a customized port number.
sudo ufw allow 22
NOTE that ufw is not always available in most Linux system. To install ufw, use this command.
Update system files first...
sudo apt-get update && sudo apt-get upgrade
Then install UFW package.
sudo apt-get install ufw
I hope that gets you in the right direction in debugging your issue. If not, drop us a message again.
Cheeers!
How did you fair on these questions?
very well great job.... keep up the good works
Thank you for your uplifting comment on my TH-cam channel. Your words put a smile on my face and brightened my day. I truly appreciate your continued support. Wishing you all the best!
Thanks man! I appreciate it
Glad I could help!
I watched many explanations about the hetzner 22 port solution, but none of them was a solution, putty does not login, only Bitvise SSH Client logs in, not with the root password sent to your e-mail address, you can log in when you create a root password from the hetzner panel, I solved the solution in this way
Thanks leaving your alternate solution to resolving the issue. Much appreciate your comments 🙏
başkan tam olarak nasıl çözdün anlatabilir misin? ben de hetznerden aldım server'ı port 22 connectio time out sorunu yaşıyorum
Where u typing this command
The black screen with large fonts are in Command Prompt, and and black screen with smaller fonts are in VMWare Player console session.
I hope that answers your question.
@@RabiGurungXybernetics i buyed vps at 14$ now it not connecting
Sorry I did not understand your question.
Do you have a bit more detail?
Sshd is not running
What's the solution
What error message I getting?
When I run status command to check sshd status it keep showing sshd is not running
And unrecognized
Sshd re-exec path
To check ssh status then keep showing all these sshd errors
There are couple of thing you can do and check.
1) Try restarting SSH Service with this command.
sudo service ssh restart
If you're using a system with systemd (daemon), you can use this command
sudo systemctl restart ssh
2) Check log file
The SSH log file is located here. Open using any text editor. Alternatively you can use cat, more or less BASH command. I am using Nano as text editor here in the command below.
sudo nano /var/log/auth.log
3) Check SSH configuration
Using a textt editor check your SSH configuration file. I am using nano as a text editor in the command below. vi and vim will work as well. Check paths in particular.
sudo nano /etc/ssh/sshd_config
4) Make sure the permission to SSH configuration file correct. I normally have my ssh configuration file as follows.
sudo chmod 600 /etc/ssh/sshd_config
sudo chmod 700 /var/run/sshd
**** WORST CASE SENARIO ****
Worst case scenario, reinstall SSH. Make sure that you have console access when doing this.
sudo apt-get remove openssh-server
sudo apt-get install openssh-server
I hope that helps. Good luck!
you are the best !!!! tanks !
You're welcome!
how to know my user@ip's password?
Thank you brother
Thank you so much for your comment! I'm glad my video was helpful to you in resolving the SSH connection refused error on port 22. If you have any other questions or topics you'd like me to cover, feel free to let me know. Thanks again for watching!
good job bro, lots of thanks
Thanks for your kind comments.
thank you
You are welcome.
Finally, Thank You :) :)
You're welcome!
thanks mate!
You're welcome!
thanks rabi!
You are welcome.
Very very tanks
You are welcome!
what's the password?????
Not too sure what password you are referring to. But if you are talking about the SSH password, that will be what you had configured when you initially create your Linux box or VPS.
useless
if you doesn't install it doesn't work
If you are referring to installing Open SSH server, unfortunately, you do need to install an SSH server to sole capacity to get the SSH service, so that the SSH client can connect to the remote Linux machine.
thx you
did'nt work
What error message are you getting?
how am i supposed to type commands if i cant access ssh lol
When you try to access the ssh, what error do you get in your command prompt?
Make it full screen bc
Thank you for your constructive feedback. Will take note of it and apply that in my next video.
Thanks for leaving comment on my channel.