Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
    
How do you install the SSH Server? –  Achu Oct 25 '12 at 19:27
    
Anyway, 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 ssh Port 22 blocked by your ISP or something. So, you should change the port number from 22 to something else editing /etc/ssh/sshd_config –  Achu Oct 25 '12 at 19:35
    
Aaaaahhh, *^*^¨'. 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? –  Ole Henrik Skogstrøm Oct 25 '12 at 19:36
    
:) by accepting my answer. But don't delete your comment, it will help peoples who run the same situation :) –  Achu Oct 25 '12 at 19:44
add comment

1 Answer 1

up vote 3 down vote accepted

Anyway, 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 ssh Port 22 blocked by your ISP or something. So, you should change the port number from 22 to something else editing /etc/ssh/sshd_config

share|improve this answer
1  
Nice answer, it reminded me that i need to open port 22 in my router as well. –  Ole Henrik Skogstrøm Oct 25 '12 at 19:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.