Re: Permission denied with "OpenSSH for Windows"
From: Carlos N (cgnjunkregDELETE_at_hotmail.com)
Date: 06/29/04
- Previous message: Mike: "Re: Permission denied with "OpenSSH for Windows""
- In reply to: Mike: "Re: Permission denied with "OpenSSH for Windows""
- Next in thread: Mike: "Re: Permission denied with "OpenSSH for Windows""
- Reply: Mike: "Re: Permission denied with "OpenSSH for Windows""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Previous message: Mike: "Re: Permission denied with "OpenSSH for Windows""
- In reply to: Mike: "Re: Permission denied with "OpenSSH for Windows""
- Next in thread: Mike: "Re: Permission denied with "OpenSSH for Windows""
- Reply: Mike: "Re: Permission denied with "OpenSSH for Windows""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|