This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fw: Permission denied (publickey,password,keyboard-interactive).

  I started with the just running the script and it didn't work. I have only been trying chmod and the other stuff in my previous post since then.
  Will I get more help if I uninstall everything and try it again? I am just trying to get sftp to work. 
  I'll run
mkpasswd -d je28004@tjanus.cap>>  /etc/passwd
je28004@tjanus.cap is the domain account I am signed on with.
  But the issue I am having is logging into ssh with a local account (test), not je28004.

  And I will change the owner of /var/empty to sshd_server which is the local account that the sshd service uses. I have separated privileges turned on and in the readme it looked like it wanted the Owner to be SYSTEM.
  Thanks for your help, any guidance will be appreciated. I have tried all the stuff I know how to do so I am boned unless someone can help me.
  SFTP is the only way I can back up this device and the project I am working on is at a complete standstill until I can get a backup solution in place. Any time spent helping me is enormously appreciated.
Dave M

----- Original Message ----
From: Larry Hall (Cygwin) <>
Sent: Wednesday, September 23, 2009 9:28:56 AM
Subject: Re: Fw: Permission denied (publickey,password,keyboard-interactive).

On 09/23/2009 11:01 AM, Dave M wrote:
> Dave,
> I checked that readme file. Um, I am not sure what it is telling me, it
> is  not really laid out step by step. I think it would be more useful if I read
> it from the bottom to the top. But still, I THINK I did everything it
> suggested. I had run ssh-host-config before, today I ran ssh-user-config and
> made SYSTEM the owner of /var/empty and checked the permissions on the
> sshd_server account (the host-config script had set them correctly, I didn't
> have to do anything to the account privileges).

SYSTEM is the proper owner for XP and W2K.  For later WIndows versions, it's
cyg_server.  See ssh-host-config and related scripts for all the details. Since it's
not possible to know what you've done in the process of playing around with this,
you'll need to manually check all the permissions and ownerships of files mentioned
in the scripts to make sure they are set as they are supposed to be.  This is why
using the scripts is highly recommended.  It's allot less work and error-prone. ;-)


>    Also, every time I log in to the bash shell, I get this:
> Your group is currently "mkgroup".  This indicates that
> the /etc/group (and possibly /etc/passwd) files should be rebuilt.
> See the man pages for mkpasswd and mkgroup then, for example, run
> mkpasswd -l [-d]>  /etc/passwd
> mkgroup  -l [-d]>  /etc/group
> Note that the -d switch is necessary for domain users.
>    I have run:
> mkpasswd -l>  /etc/passwd
> mkgroup  -l>  /etc/group
> Both successfully (in that order) and the contents of those files "look"
> right, but I still keep getting that message. I don't know if this is
> related or not.

Since your user is a domain user, you need to use the '-d' flag indicated above in
both commands.

-- Larry Hall                    
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746


A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

Problem reports:
Unsubscribe info:

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]