Re: Permission denied with "OpenSSH for Windows"

From: Carlos N (cgnjunkregDELETE_at_hotmail.com)
Date: 06/29/04

  • Next message: Mike: "Re: Permission denied with "OpenSSH for Windows""
    Date: Tue, 29 Jun 2004 10:25:32 -0400
    
    

    I am by no means and expert, but I have just recently successfully
    gotten this to work....

    Jens wrote:
    >>
    >> Use the Windows Installer
    >> type mkgroup -l >> ..\etc\group
    >> type mkpasswd -l -u Test >> ..\etc\passwd
    >> (The uSer Test already exist on the XP pc)

    Have you tried making another user from scratch? Also insure that the
    username doesn't have any spaces, which Win allows, but gave me trouble
    with SSH. Double check the contents of your group file - mine has all
    the local groups along with something that looks like a shortened SID
    next to them. My password file has the SSH user (SID removed from line
    below):

    :SSH User,U-COMPUTER\sshuser,SID:/home/sshuser:/bin/switch

    >> Test@192.168.0.2's password:
    >> Last login: Mon Jun 28 09:09:48 2004 from linux-server
    >> /bin/switch: Permission denied
    >> Connection to 192.168.0.2 closed.
    >> LINUX-SERVER:/#
    >>
    >> I also tried /bin/sh. the same.
    >> I want to stress that I use OpenSSh under WindowsXP.
    >>
    >> What else can I do?
    >>
    >> Many Thanks
    >>
    >> Jens
    >
    >

    Mike Wrote:
    > I am guessing (by the use of switch.exe) that you are using the Network
    > Simplicity re-package of the Cygwin OpenSSH server? If this is the
    > case, I have two suggestions
    > 1. The Network Simplicity project was abandoned long ago
    > (http://www.networksimplicity.com/openssh/) at version 3.4. There has
    > been many security fixes since then. Update to the latest cygwin
    > version. Read the documentation installed with the package and it will
    > tell you to run a command like "ssh_config_server" (I cannot remember
    > the exact command as I have not used Cygwin OpenSSH for some time). Use
    > this command, and you should be right.

    Actually, while Network Simplicity abandoned their project, it was
    picked up by:
    http://sshwindows.sourceforge.net/

    The sshd file is dated September 2003 and displays version information
    3.7.1p1. Current version on the openssh web site is 3.8.1p1, so it
    seems like sshwindows is one version behind.

    > 2. Your problem may be related to the absence of the SYSTEM user in
    > /etc/passwd. Try "mkpasswd -l -u system >> ..\etc\passwd"
    >

    For what it is worth, I do NOT have the SYSTEM user in my setup.

    Tonij & Jens wrote:
    >> Also, if /bin/switch is getting a permission denied, what are the
    >> permissions on the home directory of the user you are trying to
    >> connect as?
    >>
    >
    > Dir = /home/Test
    >
    > ls -lg /home
    > ...
    > drwxrwx---+ 15 Test Administ 0 Jun 26 17:31 Test
    > ...

    I don't think the problem is necessarily with the home directory, it
    seems like the problem may be with the /bin directory or the switch.exe
    file. Note that I have Windows 2000 running Fat32 and NOT NTFS, so
    there may be a difference. However, here are my permission (excerpt):

    drwxr-xr-x 2 Administ mkpasswd 0 Jun 25 14:40 bin

    -rwxr-xr-x 1 Administ mkpasswd 232960 Sep 17 2003 ssh.exe
    -rwxr-xr-x 1 Administ mkpasswd 11264 Sep 21 2003 switch.exe

    I hope this helps!

    Carlos


  • Next message: Mike: "Re: Permission denied with "OpenSSH for Windows""

    Relevant Pages

    • Re: AMD CPU-Driver fuer Athlon 64 X2 3800+
      ... Jens Ansorg wrote: ... Core zu bewegen - nix! ... der zweite Core bleibt unter Windows unsichtbar:( ... heute ist es ein AMD X2 - der Rest der Kiste ist identisch. ...
      (microsoft.public.de.german.windowsxp.setup)
    • Re: Update Exchange 2000 auf 2003
      ... Ein Upgrade von Exchange 2000 ist sehr einfach und kann auch als Inplace ... Ist ein direktes Update auf dem bestehenden Windows ... > Gruss Jens ...
      (microsoft.public.de.exchange)
    • =?Utf-8?Q?RE:_Dom=C3=A4nencontroller_in_verschi?= =?Utf-8?Q?edenen_Sprachen?=
      ... "Jens Baier" schrieb: ... >> kann man an ein deutsches Windows 2003 Netzwerk mit AD einen ... Prev by Date: ... Next by Date: ...
      (microsoft.public.de.german.windows.server.networking)
    • Re: Windows Systemwiederherstellung
      ... "Hermann" schrieb: ... > Jens Kirschner wrote: ... Kann ich Windows Home überbügeln?? ... Next by Date: ...
      (microsoft.public.de.german.windowsxp.sonstiges)
    • Re: sftp on win
      ... > and on unix server. ... I uninstalled the package from http://lexa.mckenna.edu/sshwindows/ and in place of that I installed ... the cygwin OpenSSH stuff. ... http://lexa.mckenna.edu/sshwindows/ on my Windows 2000 machine and there it works out of the box. ...
      (comp.security.ssh)