[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] WinSCP and Jailkit

From: Steven Mapes
Subject: Re: [Jailkit-users] WinSCP and Jailkit
Date: Tue, 11 Dec 2007 08:56:20 +0000
User-agent: Thunderbird (Windows/20071031)

I got it working in the end by making the user use bash and then copying in some of the commands that WinSCP requires like ls, cp, mv.

Olivier Sessink wrote:
Steven Mapes wrote:
I was wondering if anyone knows how to get jailkit to allow connection
from WinSCP, especially for SCP only accounts.

I recently installed jailkit onto my Fedora Core 5 box with a restricted
SCP user.  Using SCP directly works fine form other *nix machines and
from inside of cygwin on windows, but I have a user who wishes to use
WinSCP which tries to create an interactive shell session.

This is what appears in the log "/tried to get an interactive shell
session (/usr/sbin/jk_lsh), which is never allowed by jk_lsh/".

I'm not sure for scp, but when using sftp I know that winscp has an
option for this. Something called "sftp only" or "don't fallback to scp"
or something like that.

Looking around I see that WinSCP has problems with restricted shell
but was hoping someone here has found a way to get it to work

It might be that for scp you need to give access to an interactive
shell. You might want to allow sftp and scp in the jail, and have winscp
users use sftp. Otherwise create an interactive shell (and don't use
jk_lsh) and add some minimal utilities.


Jailkit-users mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]