Go Back   Wireless and Wifi Forums > News > Newsgroups > alt.computer.security
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-02-2006, 08:26 PM
Erik Naslund
Guest
 
Posts: n/a
Default OpenSSH Windows Security

My company has a requirement for secure file transfer. We are limited
to windows server 2003. I have successfully setup OpenSSH via cygwin on
this server.

The problem I am having is that I cannot seem to figure out how to
isolate users. They are permitted to travel up the directory structure
into the cygwin directories. Granted it is only read access, but how
can I lock them into their home directory?

I have tried chaning permissions on the parent directories, but as soon
as I do, the user can no longer log in.


Reply With Quote
  #2 (permalink)  
Old 08-03-2006, 07:14 AM
Ludovic Joly
Guest
 
Posts: n/a
Default Re: OpenSSH Windows Security


Maybe setting up chroot cages would help?

Kind regards
Ludovic


Reply With Quote
  #3 (permalink)  
Old 08-03-2006, 11:19 AM
TwistyCreek
Guest
 
Posts: n/a
Default Re: OpenSSH Windows Security

Erik Naslund wrote:

> My company has a requirement for secure file transfer. We are limited
> to windows server 2003. I have successfully setup OpenSSH via cygwin on
> this server.
>
> The problem I am having is that I cannot seem to figure out how to
> isolate users. They are permitted to travel up the directory structure
> into the cygwin directories. Granted it is only read access, but how
> can I lock them into their home directory?


You need to put them in a chroot jail. Don't know about Cygwin, but
instructions for doing this with OpenSSH in a "real" *nix environment
can be found here...

http://wiki.linuxquestions.org/wiki/OpenSSH_chrooting

OPenSSH really isn't the best choice if you just need to move files.
It is, as the name implies, a "shell" which needs certain things to
function. This makes chrooting users much more difficult.


Reply With Quote
  #4 (permalink)  
Old 08-03-2006, 12:09 PM
Erik Naslund
Guest
 
Posts: n/a
Default Re: OpenSSH Windows Security

I can prevent them from having shell access by changing their default
shell varialble to /usr/sbin/sftp-server or the like.

The goal is to only allow SFTP/SCP access and to lock them into their
home directories. As far as I know, OpenSSH is the only option for
secure file transfer in windows. (welcoming alternatives at this point)

I will have a look at the link you provided and see what mileage I can
get with cygwin. I will post the results.

TwistyCreek wrote:
> Erik Naslund wrote:
>
> > My company has a requirement for secure file transfer. We are limited
> > to windows server 2003. I have successfully setup OpenSSH via cygwin on
> > this server.
> >
> > The problem I am having is that I cannot seem to figure out how to
> > isolate users. They are permitted to travel up the directory structure
> > into the cygwin directories. Granted it is only read access, but how
> > can I lock them into their home directory?

>
> You need to put them in a chroot jail. Don't know about Cygwin, but
> instructions for doing this with OpenSSH in a "real" *nix environment
> can be found here...
>
> http://wiki.linuxquestions.org/wiki/OpenSSH_chrooting
>
> OPenSSH really isn't the best choice if you just need to move files.
> It is, as the name implies, a "shell" which needs certain things to
> function. This makes chrooting users much more difficult.



Reply With Quote
  #5 (permalink)  
Old 08-03-2006, 01:24 PM
Roger Parks
Guest
 
Posts: n/a
Default Re: OpenSSH Windows Security

On Wed, 02 Aug 2006 16:26:46 -0400, Erik Naslund <erik.naslund@gmail.com>
wrote:

> My company has a requirement for secure file transfer. We are limited
> to windows server 2003. I have successfully setup OpenSSH via cygwin on
> this server.
>
> The problem I am having is that I cannot seem to figure out how to
> isolate users. They are permitted to travel up the directory structure
> into the cygwin directories. Granted it is only read access, but how
> can I lock them into their home directory?
>
> I have tried chaning permissions on the parent directories, but as soon
> as I do, the user can no longer log in.
>


Try putty instead - small, fast, nice gui.

http://www.chiark.greenend.org.uk/~sgtatham/putty/


--
Vista error#4711: TCPA / RIAA / NGSCP / WGA VIOLATION: Microsoft
optical mouse detected Linux patterns on mousepad. Partition scan in
progress to remove offending, unapproved products. Request permission,
and apply for a new key to reactivate MS software at www.ms.com


Reply With Quote
  #6 (permalink)  
Old 08-03-2006, 03:05 PM
Todd H.
Guest
 
Posts: n/a
Default Re: OpenSSH Windows Security

"Erik Naslund" <erik.naslund@gmail.com> writes:
> My company has a requirement for secure file transfer. We are limited
> to windows server 2003. I have successfully setup OpenSSH via cygwin on
> this server.
>
> The problem I am having is that I cannot seem to figure out how to
> isolate users. They are permitted to travel up the directory structure
> into the cygwin directories. Granted it is only read access, but how
> can I lock them into their home directory?
>
> I have tried chaning permissions on the parent directories, but as soon
> as I do, the user can no longer log in.


VanDyke VShell Server is what our company ultimately implemented for
windows ssh/scp due to several issues with cygwin/openssh on the
windows side.

If you can't get openssh to get where you wanna go with cygwin on
windows, this may be worth looking into.

There are also dedicated ssh newsgroups where mega ssh gurus hang out
and could tell you best practices.

Best Regards,
--
Todd H.
http://www.toddh.net/

Reply With Quote
  #7 (permalink)  
Old 08-03-2006, 03:07 PM
nemo_outis
Guest
 
Posts: n/a
Default Re: OpenSSH Windows Security

"Erik Naslund" <erik.naslund@gmail.com> wrote in
news:1154606956.116352.205580@h48g2000cwc.googlegr oups.com:

> I can prevent them from having shell access by changing their default
> shell varialble to /usr/sbin/sftp-server or the like.
>
> The goal is to only allow SFTP/SCP access and to lock them into their
> home directories. As far as I know, OpenSSH is the only option for
> secure file transfer in windows. (welcoming alternatives at this
> point)


There is also SFTP and FTP/TLS-SSL. Serv-u and other Windows ftp servers
provide directory limits.

The user experience is not a transparent Windows Explorer sort, though.

Regards,





Reply With Quote
  #8 (permalink)  
Old 08-03-2006, 08:21 PM
Borked Pseudo Mailed
Guest
 
Posts: n/a
Default Re: OpenSSH Windows Security

nemo_outis wrote:

> "Erik Naslund" <erik.naslund@gmail.com> wrote in
> news:1154606956.116352.205580@h48g2000cwc.googlegr oups.com:
>
> > I can prevent them from having shell access by changing their default
> > shell varialble to /usr/sbin/sftp-server or the like.
> >
> > The goal is to only allow SFTP/SCP access and to lock them into their
> > home directories. As far as I know, OpenSSH is the only option for
> > secure file transfer in windows. (welcoming alternatives at this
> > point)

>
> There is also SFTP


SFTP is typically defined as using an SSH capable FTP client to connect
to an SSH server. It uses the "native" commands on the server to provide
directory services, and needs to be secure exactly like a "raw" SSH
session would be with respect to up-level directory access.

http://kb.iu.edu/data/akqg.html

There is a server daemon named SFTP, but it also allows access to all
the directories a user has permission to access, and requires that
permissions be set in such a way that access to $FTPROOT is allowed for
all users. The same problem the OP is running up against with SSH
I think. :-(

> and FTP/TLS-SSL. Serv-u and other Windows ftp servers
> provide directory limits.


FTPS and a proper FTP server would be my choice, and with the right
file manager on the client side moving files back and forth could be as
transparent as moving them from folder to folder on your own machine
(does Tuxcmd have a Windows port)? <g> It wouldn't be all that
complicated to script the whole thing if these file transfers followed
patterns or routine.

My second choice would be a full blown VPN solution, FWIW. Second to
FTPS only because I think it's a little bit of an over kill for the
problem the OP is trying to solve.

> The user experience is not a transparent Windows Explorer sort, though.


Are there no VFS "plugins" for Windows file managers?

I knew there was a reason I dumped all things Windows years ago. ;-)


Reply With Quote
  #9 (permalink)  
Old 08-03-2006, 08:26 PM
Sebastian Gottschalk
Guest
 
Posts: n/a
Default Re: OpenSSH Windows Security

Borked Pseudo Mailed wrote:

>> and FTP/TLS-SSL. Serv-u and other Windows ftp servers
>> provide directory limits.

>
> FTPS and a proper FTP server would be my choice, and with the right
> file manager on the client side moving files back and forth could be as
> transparent as moving them from folder to folder on your own machine
> (does Tuxcmd have a Windows port)? <g>


Try Novell NetDrive (but be aware of the improper ACLs set by the
installer). It allows you to mount FTPVFS with FTPS as a net drive.

>> The user experience is not a transparent Windows Explorer sort, though.

>
> Are there no VFS "plugins" for Windows file managers?


There are, but only third-party.

Reply With Quote
  #10 (permalink)  
Old 08-04-2006, 12:38 AM
George Orwell
Guest
 
Posts: n/a
Default Re: OpenSSH Windows Security

Sebastian Gottschalk wrote:

> Borked Pseudo Mailed wrote:
>
> >> and FTP/TLS-SSL. Serv-u and other Windows ftp servers
> >> provide directory limits.

> >
> > FTPS and a proper FTP server would be my choice, and with the right
> > file manager on the client side moving files back and forth could be as
> > transparent as moving them from folder to folder on your own machine
> > (does Tuxcmd have a Windows port)? <g>

>
> Try Novell NetDrive (but be aware of the improper ACLs set by the
> installer). It allows you to mount FTPVFS with FTPS as a net drive.


NetDrive is nothing more than a "wrapper" for common Internet
protocols, most of them not even even secured by encryption as the OP
mandated, and none of them immune to the problem the OP is having with
SSH.

Your "advice", as is typically the case, is completely useless.




Reply With Quote
  #11 (permalink)  
Old 08-04-2006, 12:55 AM
Sebastian Gottschalk
Guest
 
Posts: n/a
Default Re: OpenSSH Windows Security

George Orwell wrote:

>>>> and FTP/TLS-SSL. Serv-u and other Windows ftp servers
>>>> provide directory limits.
>>> FTPS and a proper FTP server would be my choice, and with the right
>>> file manager on the client side moving files back and forth could be as
>>> transparent as moving them from folder to folder on your own machine
>>> (does Tuxcmd have a Windows port)? <g>

>> Try Novell NetDrive (but be aware of the improper ACLs set by the
>> installer). It allows you to mount FTPVFS with FTPS as a net drive.

>
> NetDrive is nothing more than a "wrapper" for common Internet
> protocols,


Wrong. It fully implements a file system driver.

> most of them not even even secured by encryption as the OP
> mandated, and none of them immune to the problem the OP is having with
> SSH.


As I already mentioned, it does support FTPS. And with FTPVFS the
problem is addresses as well.

> Your "advice", as is typically the case, is completely useless.


I'm sorry that due to some management issue, your rather stupid postings
slipped through the filter. :-)

Reply With Quote
  #12 (permalink)  
Old 08-04-2006, 09:35 AM
Ludovic Joly
Guest
 
Posts: n/a
Default Re: OpenSSH Windows Security

Borked Pseudo Mailed wrote :
> My second choice would be a full blown VPN solution, FWIW. Second to
> FTPS only because I think it's a little bit of an over kill for the
> problem the OP is trying to solve.


A full blown VPN is maybe a bit heavy, but today, most versions of
Windows make establishing IPSEC tunnels between too machines (IP
addresses) very easy. Wouldn't that be a simple and good choice for
solving the problem of the OP?

A page with links to IPSec Resources for Windows 2000:
http://labmice.techtarget.com/networking/ipsec.htm

IPSec tunneling resources:
http://support.microsoft.com/?kbid=252735
http://support.microsoft.com/?kbid=301284

Kind regards,
Nomen Nescio


Reply With Quote
  #13 (permalink)  
Old 08-15-2006, 10:20 AM
Charly Oz
Guest
 
Posts: n/a
Default Re: OpenSSH Windows Security

Erik,

If you have a bit of cash (relative), BitVise provide an easy-to-install and
manage OpenSSH server + commercial support.
http://www.bitvise.com/

There are a couple of other providers but these guys seem ok to me.

Hope this helps.

Charly.

"Erik Naslund" <erik.naslund@gmail.com> wrote in message
news:1154550406.594821.299900@s13g2000cwa.googlegr oups.com...
> My company has a requirement for secure file transfer. We are limited
> to windows server 2003. I have successfully setup OpenSSH via cygwin on
> this server.
>
> The problem I am having is that I cannot seem to figure out how to
> isolate users. They are permitted to travel up the directory structure
> into the cygwin directories. Granted it is only read access, but how
> can I lock them into their home directory?
>
> I have tried chaning permissions on the parent directories, but as soon
> as I do, the user can no longer log in.
>




Reply With Quote
  #14 (permalink)  
Old 11-26-2007, 01:10 PM
Junior Member
 
Join Date: Nov 2007
Posts: 1
Default Access Denied on user without admin privilege

Hi,

I installed OpenSSH for Windows on a Windows 2003 server. As long as my server userid has admin privilege, I can use that id to remote connect from the Net using SFTP client.

However, my SFTP client connection will be rejected with "access denied' error if the windows id has only "Users" privilege, even thought I had verify that the directory was created and assigned all privilege for thelogin id under the SFTP home root directory. As soon as I added admin privilege to the login id, it all works but you would understand that I do not want all SFTP user to have admin right.

So what how do I resove this access problem?

Thanks

jml
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HPSBMA02198 SSRT061177 rev.1 - HP OpenView Network Node Manager (OV NNM) Remote Unauthorized Access Security Alert comp.security.misc 0 04-02-2007 01:16 PM
HPSBMA02176 SSRT051035 rev.1 - HP OpenView Network Node Manager (OV NNM) Remote Unauthorized Execution of Arbitrary Code Security Alert comp.security.misc 0 01-11-2007 07:07 PM
HPSBMA02175 SSRT061174 rev.1 - HP OpenView Network Node Manager (OV NNM) Remote Unauthorized Read Access to Files Security Alert comp.security.misc 0 01-11-2007 07:06 PM
Corrupt NTFS filesystem Citizen Bob alt.comp.hardware 144 11-11-2006 07:38 PM
FBI Monitoring Your Computer And Reading Material re. Patriot Act tightwad alt.computer.security 2 11-08-2005 09:21 AM


All times are GMT. The time now is 10:23 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45