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....

SSH/sFTP login fails:

Postby ^rooker » Mon Feb 11, 2019 12:21 am

[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.
  • 0

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!
User avatar
^rooker
Site Admin
 
Posts: 1444
Joined: Fri Aug 29, 2003 8:39 pm
Reputation: 0

Return to Knowledge Base

Who is online

Users browsing this forum: Google [Bot] and 3 guests

Who is online over last 24 hours

Users browsed this forum in the last 24 hours: Google [Bot] and 5 guests

Reputation System ©'