SSH/sFTP login fails:

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

SSH/sFTP login fails:

Post by ^rooker »

[PROBLEM]
I've created a new system user to login per sFTP (over SSH). As per usual.
However, I just couldn't login as that user. Thunar said "Connection failed." - no additional information.

When I've checked the logfile "/var/log/auth.log" on the SSH server, I found the following:
fatal: bad ownership or modes for chroot directory "/home/myname"
[SOLUTION]
The $HOME directory had ownership 775 (rwx-rw-r), but the sFTP server refuses logins unless it's 755: only owner can write.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply