Why Can't I Authenticate

9 posts / 0 new
Last post
desert serenity
Offline
Last seen: 7 years 7 months ago
Joined: 20.01.2011 - 10:39
Why Can't I Authenticate

I installed Copssh, and created Users (e.g. MY-PC\SshUser). I ensured the Password Authentication checkbox is checked. I restarted the computer. I attempt to connect via SSH using the following command:

$ ssh SshUser@192.168.1.1
Enter password:
Access denied.
Enter password:
Access denied.
Enter password:
Access denied.

$

Authentication fails saying "Access Denied" or "Permission Denied" depending on which client I use.

Copssh reports the following events for the login attempt:

2011.01.20 09:29:20 - Received disconnect from 192.168.1.1: 13: Unable to authenticate
2011.01.20 09:29:10 - Failed password for invalid user SshUser from 192.168.1.1 port 49190 ssh2
2011.01.20 09:29:05 - input_userauth_request: invalid user SshUser
2011.01.20 09:29:05 - Invalid user SshUser from 192.168.1.1

I'm running Windows 7 x64. Any idea what's going on? Need any more information?

itefix
Offline
Last seen: 51 min 31 sec ago
Joined: 01.05.2008 - 21:33
User names are case

User names are case sensitive. Can you check if you user name is registered as SshUser ? If you have still the same problem, send me your etc/passwd bin/copsshcp.config files via contact form.

desert serenity
Offline
Last seen: 7 years 7 months ago
Joined: 20.01.2011 - 10:39
I used the correct case of

I used the correct case of the user name when entering it into the ssh clients.

I found this recent thread from a user experiencing a similar problem: http://www.itefix.no/i2/node/12474. Unfortunately, I can't the solution to his problem (disabling UAC), because I can't start the "Openssh SSHD" service, now (at first it returned with exit code 255, now, after reinstalling Copssh it won't start due to "Login failure").

If you don't disagree, I'll try reinstalling Copssh again, making sure the service is removed as well, and then if the service will start, I will try the solution in the recent post I mentioned and report back here with my status, and if necessary, the information you requested.

Thank you

desert serenity
Offline
Last seen: 7 years 7 months ago
Joined: 20.01.2011 - 10:39
Fixed service startup failure

Fixed service startup failure by setting service password manually, and fixed SSH login failure by running the Control Panel as Administrator when adding the user accounts. Details follow:

I reinstalled Copssh. Uninstallation did correctly remove the service, but I still got a "Login failure" when trying to start the service after reinstallation, so I reset the password manually to something secure. This allowed to start the service again.

I was also able to successfully login remotely using my user account. Using the thread I linked to in the previous post as a guide, I ran Copssh Control Panel as an Administrator, and added my user accounts there, and that may have been the required fix.

Well done, Copssh

mbrov
Offline
Last seen: 7 years 8 months ago
Joined: 12.10.2011 - 08:49
access denied

 Hello,

I am having the same problem the OP was having, however his fix did not work for me.

I have tried many different 'fixes' but none have worked. I always get "Access Denied".

The User directory is properly created under /home/ in the ICW installation directory.

I've also forwarded the ports and added exception to windows firewall.

2011.10.12 06:57:09 - Connection closed by 192.168.1.106 [preauth]

2011.10.12 06:57:06 - Failed password for invalid user SSHUser from 192.168.1.106 port 57032 ssh2

2011.10.12 06:56:58 - input_userauth_request: invalid user SSHUser [preauth]

2011.10.12 06:56:58 - Invalid user SSHUser from 192.168.1.106

2011.10.12 06:56:15 - Connection closed by 192.168.1.106 [preauth]

2011.10.12 06:56:11 - Failed password for invalid user SSHUser from 192.168.1.106 port 57025 ssh2

2011.10.12 06:56:01 - input_userauth_request: invalid user SSHUser [preauth]

2011.10.12 06:56:01 - Invalid user SSHUser from 192.168.1.106

2011.10.12 06:54:45 - Received disconnect from 192.168.1.106: 14: No supported authentication methods available [preauth]

2011.10.12 06:54:45 - input_userauth_request: invalid user NAS-D525\\\\SSHUser [preauth]

2011.10.12 06:54:45 - Invalid user NAS-D525\\SSHUser from 192.168.1.106

SSHUser is the exact username being used, the password that's used is also exact.

Does anyone have any ideas that could fix this?

Thank you.

desert serenity
Offline
Last seen: 7 years 7 months ago
Joined: 20.01.2011 - 10:39
I also found it is necessary

I also found it is necessary to run the CopSSH Configuration utility as Administrator BEFORE adding the SSH accounts. Does this help?

mbrov
Offline
Last seen: 7 years 8 months ago
Joined: 12.10.2011 - 08:49
 You mean modify

 You mean modify copssh.config? 

 

I installed as administrator, then ran control panel as administrator.

desert serenity
Offline
Last seen: 7 years 7 months ago
Joined: 20.01.2011 - 10:39
I mean always explicitly run

I mean always explicitly run the Control Panel as Administrator, particularly before you Add the user accounts. By this I mean Right-Click the Control Panel icon and click Run as Administrator, even you're already logged in as an Administrator.

I remember always having to do that. I no longer use CopSSH for my SSH needs.

mbrov
Offline
Last seen: 7 years 8 months ago
Joined: 12.10.2011 - 08:49
 Yeah that's exactly what I

 Yeah that's exactly what I based on the guide you published. Before adding the users, and after adding them.