SSH password entered too many times Connection refused
7,623
If you haven't installed ssh-server yet, you need to install it by running:
sudo apt-get install openssh-Server
,
You may also need to check if the default SSH Port 22
is open on your Router/Firewall. You may also need to change the default port under /etc/ssh/sshd_config
.
Related videos on Youtube
Author by
Ole Henrik Skogstrøm
Updated on September 18, 2022Comments
-
Ole Henrik Skogstrøm over 1 year
I tried connecting to my new installed Ubuntu 12 server via SSH and I was asked for my password. (I had used "myusername@ipadress" to connect)
After entering the right password a few times (with no luck; access denied) I started getting an error directly telling me that the connection was refused without asking me for a password anymore.
It seems like I have managed to blacklist myself. It has been like this for about 2 hours now, is there a quick solution for this?
-
Achu over 11 yearsHow do you install the SSH Server?
-
Achu over 11 yearsAnyway, if you don't install ssh-server yet, install
sudo apt-get install openssh-server
, Ping the server, if your server is remote may be the sshPort 22
blocked by your ISP or something. So, you should change the port number from 22 to something else editing/etc/ssh/sshd_config
-
Ole Henrik Skogstrøm over 11 yearsAaaaahhh, *^*^¨'. Well i believed i told my server to install it during the initial installation of Ubuntu server. I ran the install command now and it installed. Logged in successfully now... So how do i end this post?
-
Achu over 11 years:) by accepting my answer. But don't delete your comment, it will help peoples who run the same situation :)
-
-
Ole Henrik Skogstrøm over 11 yearsNice answer, it reminded me that i need to open port 22 in my router as well.
-
Mike Castro Demaria over 4 yearsSame problem after a fresh install Ubuntu 18 minimal client + Virtualmin. Ubuntu 18 minimal client nor Virtualmin are instaling sshd, only ssh client.
-
Torsten Barthel over 2 years@David Plesk is a well known UI config tool for webservers on Linux systems. I deleted Plesk anyway and stay with Terminal based configuration.