SSH/SVN Password not working. [Sovled]

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
chi-kitory

SSH/SVN Password not working. [Sovled]

Post by chi-kitory »

hey i have an issue with ssh or svn. I installed it earlier today at work. Had it working fine all day then just when i was about to leave. I did ssh localhost it asked my for my password. and now the password doesnt work. I don't understand how this could happen. But how to i fix it?
I can log into su or sudo just fine with my password. But doesnt work when trying to test the ssh localhost.
Even if i do svn username@localhost and i type my password it doesnt work. Its really strange.
Thanks,
Chi kitory
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
chi-kitory

Re: SSH/SVN Password not working.

Post by chi-kitory »

bump
i am running gnome btw
User avatar
Pilosopong Tasyo
Level 6
Level 6
Posts: 1432
Joined: Mon Jun 22, 2009 3:26 am
Location: Philippines

Re: SSH/SVN Password not working.

Post by Pilosopong Tasyo »

Instead of username@localhost, try username@`hostname`.local
o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].
chi-kitory

Re: SSH/SVN Password not working.

Post by chi-kitory »

That doesnt seem to help
But this is what happens when i do ssh localhost

Code: Select all

username@ubuntu:/$ ssh localhost
username@localhost's password: 
Permission denied, please try again.
username@localhost's password: 
Permission denied, please try again.
username@localhost's password: 
Permission denied (publickey,password).
oobetimer

Re: SSH/SVN Password not working.

Post by oobetimer »

Try to use a correct IP adress instead of username@localhost
chi-kitory

Re: SSH/SVN Password not working.

Post by chi-kitory »

username@ubuntu:/$ ssh my_ip_here

Code: Select all

username@my_ip_here's password:
Permission denied, please try again.
username@my_ip_here's password:
Permission denied, please try again.
username@my_ip_here's password:
Permission denied, please try again.
chi-kitory

Re: SSH/SVN Password not working.

Post by chi-kitory »

is there a reset? its really messing with my work conditions.
User avatar
Pilosopong Tasyo
Level 6
Level 6
Posts: 1432
Joined: Mon Jun 22, 2009 3:26 am
Location: Philippines

Re: SSH/SVN Password not working.

Post by Pilosopong Tasyo »

chi-kitory wrote:is there a reset?
There's a hidden folder /home/<your-login-name-here>/.ssh. Open Nautilus, navigate to your home folder, and press Ctrl+H to reveal all hidden files. Locate the .ssh folder and rename it to something else (.ssh-backup for example) and try ssh'ing again. If that resets the keys you may delete the renamed .ssh-backup folder. You might have to do the same on other logins/computers that are affected. HTH.
o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].
chi-kitory

Re: SSH/SVN Password not working.

Post by chi-kitory »

the issue with doing that is it only resets the authenticity of the host. So its not like it would reset the password for me.
I tried passwd changed my password, still no dice.
I made a fake user on my side, which the password works fine with ssh.
So its really an issue with my account.
chi-kitory

Re: SSH/SVN Password not working.

Post by chi-kitory »

alright it seems with tail -f auth.log
i was able to find this out:

Code: Select all

Failed none for invalid user username port.xxx:x
meaning i dont have the rights?
chi-kitory

Re: SSH/SVN Password not working.

Post by chi-kitory »

Fixed it.
So what i had to do was look at the auth.log logs.
While it was active with -f i was able to see that it wasn't letting me in due to not have my name on the allowusers list in
/etc/ssh opening up the file called sshd_config editing it and adding

Code: Select all

AllowUsers username
Then i had to reset the server for it to work
So i did:

Code: Select all

sudo /etc/init.d/ssh restart
any questions for anyone else that has this issue ask :D
Locked

Return to “Beginner Questions”