Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: bonbob on June 15, 2020, 03:19:50 AM
-
Hi to all!
I have two home miniservers. One of them with TinyCore x86, and the other CorePure64. Both of them 11 version, and both have launched openssh server. So ssh accsess work fine. Not so long ago i try launch SFTP via openssh. I just added to /usr/local/etc/ssh/sshd_config a few lines such as:
Subsystem sftp internal-sftp
Match Group ftpuser
X11Forwarding no
AllowTcpForwarding no
ChrootDirectory %h
ForceCommand internal-sftp
and restart opensshd. On x86 SFTP has appeared, but on x64 - not. Confiurations is identical on both miniservers. Version of openssh in repo is the same too. Can anyone check, is there problem in openssh compilation or maybe i have missed something?
-
I'm Sorry. :(
I missed one difference between configuration. In default config for x86 path to sftp-server is valid
Subsystem sftp /usr/local/lib/openssh/sftp-server
But in default config for CorePure64 path is wrong:
Subsystem sftp /usr/local/libexec/sftp-server
You need change this parameter to real value and SFTP will work.
-
I know very little about using sftp but for me on 11.1 x 64 bit ....I have
tce-load -i openssh
sudo find /usr -name sftp-server
-> /usr/local/lib/openssh/sftp-server
# I am aware I need to make real configs and start daemon
cat sshd_config.orig | grep sftp-server
Subsystem sftp /usr/local/lib/openssh/sftp-server
openssh v 8.1p1 last changed 2019/12/12 updated 7.2p2 -> 8.1p1
-
Hi bonbob
I just unpacked the x86 and x86_64 openssh.tcz extensions from the TC11 repository. In both cases, the sshd_config.orig file
contained:
Subsystem sftp /usr/local/lib/openssh/sftp-server
-
Delete please this topic.
All configs is valid. In my case sshd_config was rewritten by backup after migrating to newer version of CorePure64.
Seems older version openssh really has different path to sftp-server but now it is not actual anymore.
-
Hi bonbob
Delete please this topic. ...
I will mark this topic as solved.
After searching the repositories it turns out that the x86 and x86_64 openssh.tcz extensions from TC4 used /usr/local/libexec/
to store sftp-server.
-
Rather than using libexec, using the extension name let’s you know where stuff came from.