I was trying to ssh into my Hostgator shared hosting account following this guide:
http://support.hostgator.com/articles/getting-started/how-do-i-get-and-use-ssh-access
However, it returns this error: Received disconnect from 96.125.167.124: 2: Too many
authentication failures for tridn
I tried to search around for a solution, and found this:
http://www.ipreferjim.com/2011/07/hostgator-ssh-warns-too-many-authentication-failures/
I tried doing what he suggested, but encountered another error: jailshell: .ssh/authorized_keys: No such file or directory
So I ssh into my server using the PubkeyAuthentication=n flag, and create a directory called .ssh and a file called authorized_keys.
I then redid what was suggested in the article, which is this:
cat ~/.ssh/hostgator.pub | ssh -p 2222 -o PubkeyAuthentication=no
[email protected] 'cat >> .ssh/authorized_keys' (note: my ssh key is called hostgator.pub. it's dsa
I verified that the authorized_keys now has the content of this key. However, it still get the same error as before: eceived disconnect from 96.125.167.124: 2: Too many
authentication failures for tridn
Anybody knows how I should proceed next?