1. freezr

    SFTP with nologin shell 🙏

    Hi There, I am trying to create a git user to access on its git /home only through sftp. I didn't found useful info on the handbook therefore I followed this guide: https://www.micski.dk/2019/12/11/sftp-server-with-openssh-on-freebsd/ However I couldn't establish a connection... User is...
  2. C

    Cannot get SFTP work in FreeBSD 12.4 Jails

    Hi, I am new to this forum. In FreeBSD 12.3 Jail, I can easily to activate SSH server my the following command: sysrc sshd_enable=YES && \ service sshd start After that, I import my public key to user and I can use SSH / SFTP to connect to the Jail. However, in FreeBSD 12.4, my steps can only...
  3. n9010

    Solved SSH problem with JSCH and FreeBSD 12.1

    Hello, I'm facing a problem with a JAVA client trying to access a ssh/sftp box with JSCH . Apparently this issue arouse when we upgrade from an older version of FreeBSD (10.1) to 12.1. The error is com.jcraft.jsch.JSchException: Auth fail Only this JAVA library have this problem and trying to...
  4. micski

    SFTP with SSH key: No supported authentication methods available

    If I configure an SFTP-only user, that will connect via SFTP and public key to a jailed (chroot'ed) directory, then the user is denied access. I see the following error in the log. # tail /var/log/auth.log Mar 24 23:40:05 wopr sshd[11628]: user joshua login class [preauth] Mar 24 23:40:05 wopr...
  5. Buck

    Properly setting scp permissions for www and user access

    I need to set up permissions properly on a web folder for two users and apache's www user. The hierarchy looks like so: /var/www/ contains several folders for several websites managed by user1. /var/www/special/ contains a special website folder managed by user2. Therefore, I need user1 to be...
  6. S

    syslog config for sftp logging

    I'm on FreeBSD11. I changed syslog config file to log sftp actions in a file, but it doesn't work. /etc/ssh/sshd_config Subsystem sftp /usr/libexec/sftp-server -f LOCAL5 -l INFO /etc/syslog.conf local5.info /var/log/sftp/sftp.log Then I...
  7. S

    restrict sftp and block ssh except root

    Hi all, I have a sftpgroup and I want the user's of this group only can use sftp and nobody can't ssh. this is my sshd config: Match Group *,!sftpgroup X11Forwarding no ChrootDirectory %h AllowTcpForwarding no ForceCommand internal-sftp Now, I want to root only can ssh to my...
  8. J

    Changed the ssh port. Now SFTP does not work anymore.

    Hello guys. I just changed my SSH port number to 3232. The SSH connection is working, but when I tried to make it on SFTP, FileZilla says: Command: open "jeff@...." 3232 Error: Connection timed out Error: Could not connect to server The pf.conf file is also already configured to the new...
  9. freeBSDn

    Solved Chroot sftp bad ownership

    Hi - This is driving me mad.. FreeBSD 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401 I'm running lots of websites with www/apache24. I have developers looking access to modify files. I don't want to give access to server just to applicable sites. My setup is as follows: I create user accounts...