You are not logged in.
Pages: 1
Hey guys and girls,
I am having a slight issue with setting this up. Just need some guidance from my favorite community. I have ssh set up to access my server I am not trying to set up sshfs to share files. Here is what is happening.
[snappy@office Downloads]$ sftp -oPORT=1000 guesswho@192.168.1.56
guesswho@@192.168.1.56's password:
Permission denied, please try again.
guesswho@@192.168.1.56's password:
I can login with my administrator account. Here is my ssh_config
Port 1000
UsePAM yes
PermitRootLogin no
AuthorizedKeysFile .ssh/authorized_keys
ChallengeResponseAuthentication no
PrintMotd no # pam does that
UsePrivilegeSeparation sandbox # Default for new installations.
Subsystem sftp internal-sftp
Match Group sftponly
ChrootDirectory %h
ForceCommand internal-sftp
AllowTcpForwarding no
X11Forwarding no
Here is how my user is setup
guesswho:x:1001:1003::/var/www/users/guesswho/:/bin/false
Here is how my folder permissions are
/var/www/
drwxr-xr-x 3 root root 4096 Nov 7 16:43 users
/var/www/users/
drwxr-xr-x 3 root root 4096 Nov 7 16:45 guesswho
/var/www/users/guesswho
drwxr-xr-x 2 guest root 4096 Nov 7 16:45 share
For the share directory I did try to make the group sftponly and ended with the same result. Now that I have typed this out I am wondering if it has to do with the public key. I will investigate that.
Last edited by mich04 (2015-11-08 18:21:50)
I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.
Offline
guesswho:x:1001:1003::/var/www/users/guesswho/:/bin/false
why are you using /bin/false ?
Offline
I was just trying to prevent physical login to the machine with that user. I will adjust that setting later when I get back. I was reading the information at https://wiki.archlinux.org/index.php/Sshfs, but I used that in conjunction with a YouTube video someone posted. I resorted to trying the videos after I was unsuccessful with the wiki. It just seems that I am missing something simple.
I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.
Offline
Well I feel like an idiot. I changed the login shell back to /bin/bash and now it works. I did try for days without it set like that. I think it must have been a simple file permission during that period of time.
I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.
Offline
Pages: 1