You are not logged in.

#1 2009-01-27 06:19:47

Spelchek
Member
Registered: 2009-01-27
Posts: 22

SSH "Permission denied (publickey,password)"

I just installed openssh on my arch box and have looked at but have not touched the ssh_config or sshd_config file. I've also allowed SSH on my local network through the hosts_allow file. However, when I try to connect to my computer I get the message stated in the title. I have searched all over for solutions for my problem but have only found unanswered queries such as my own. Can anyone help me?

Offline

#2 2009-01-27 06:27:22

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: SSH "Permission denied (publickey,password)"

1) Check /var/log/messages for any errors
2) Run ssh with the -v switch to see if there's any useful debug info there
3) Run sshd on the server with the -d switch to see if there's any useful debug info there

Offline

#3 2009-01-27 06:57:11

Spelchek
Member
Registered: 2009-01-27
Posts: 22

Re: SSH "Permission denied (publickey,password)"

No errors found in /var/logs/messages.log

Results of ssh -v to my arch machine.

Hostname:~ user$ ssh -v brotop
OpenSSH_4.7p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to brotop [67.220.194.133] port 22.
debug1: Connection established.
debug1: identity file /Users/mark/.ssh/identity type -1
debug1: identity file /Users/mark/.ssh/id_rsa type -1
debug1: identity file /Users/mark/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3p2 Debian-9etch3
debug1: match: OpenSSH_4.3p2 Debian-9etch3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.7
debug1: Miscellaneous failure
No credentials cache found

debug1: Miscellaneous failure
No credentials cache found

debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'brotop' is known and matches the RSA host key.
debug1: Found key in /Users/mark/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/mark/.ssh/identity
debug1: Trying private key: /Users/mark/.ssh/id_rsa
debug1: Trying private key: /Users/mark/.ssh/id_dsa
debug1: Next authentication method: password
mark@brotop's password: 
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
mark@brotop's password: 
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
mark@brotop's password: 
debug1: Authentications that can continue: publickey,password
debug1: No more authentication methods to try.
Permission denied (publickey,password).

I see two miscellaneous errors just before
debug1: SSH2_MSG_KEXINIT sent


EDIT: Oops forgot to stop before I started the SSHD Daemon tongue, no errors here. I think I'll call it a night.

I'm guessing this might have to do with

debug1: Miscellaneous failure
No credentials cache found

debug1: Miscellaneous failure
No credentials cache found

Last edited by Spelchek (2009-01-27 07:07:13)

Offline

#4 2009-01-27 22:51:52

rine
Member
From: Germany
Registered: 2008-03-04
Posts: 217

Re: SSH "Permission denied (publickey,password)"

Spelchek wrote:

I just installed openssh on my arch box and have looked at but have not touched the ssh_config or sshd_config file. I've also allowed SSH on my local network through the hosts_allow file. However, when I try to connect to my computer I get the message stated in the title. I have searched all over for solutions for my problem but have only found unanswered queries such as my own. Can anyone help me?

Might just be a type, but the file is named hosts.allow and not hosts_allow.

Offline

#5 2009-01-28 01:27:08

Spelchek
Member
Registered: 2009-01-27
Posts: 22

Re: SSH "Permission denied (publickey,password)"

rine wrote:

Might just be a type, but the file is named hosts.allow and not hosts_allow.

Yeah, that's a typo, sorry. I know I put the allowed hosts in the correct locations.

Offline

#6 2009-01-28 02:01:11

Pudge
Arch Linux f@h Team Member
Registered: 2006-01-23
Posts: 300

Re: SSH "Permission denied (publickey,password)"

See if this how to helps any.

Pudge

Offline

#7 2009-01-28 05:30:53

Spelchek
Member
Registered: 2009-01-27
Posts: 22

Re: SSH "Permission denied (publickey,password)"

Success, I have successfully connected using the IP address I don't know why I didn't try this before. Sorry for wasting your time and thanks for the help.

Offline

Board footer

Powered by FluxBB