[Top][All Lists]

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

[Jailkit-users] jailkit and scp without entering the password

From: Giuliano Catrambone (CatraSoftware)
Subject: [Jailkit-users] jailkit and scp without entering the password
Date: Wed, 10 Mar 2010 18:42:17 +0100

Hi all,
    using jailkit I created an account that is permitted to execute only sftp, scp and rsync.

    Everything works fine, below find some of the commands I executed to configure that.

    Now the problem is that I need that the scp/rsync commands do not ask me the password,
    essentially I need to set the public key in my jailed account.

    How can I do that?
    Do I have to run the ssh-keygen command to generate the .ssh directory and if yes, which account I have to use to run the

    Here are some commands I executed:

    /usr/sbin/jk_init -j /jailroot jk_lsh
    /usr/sbin/jk_init -j /jailroot sftp
    /usr/sbin/jk_init -j /jailroot scp
    /usr/sbin/jk_jailuser -m -j /jailroot umts2

    vi /jailroot/etc/jailkit/jk_lsh.ini
        and add:
        executables = /usr/bin/scp, /usr/libexec/openssh/sftp-server, /usr/bin/rsync
        paths = /usr/bin/, /usr/lib, /usr/libexec/openssh/
        allow_word_expansion = 1

reply via email to

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