veket官方网站论坛

veket

 找回密码
 要注册
搜索
查看: 269|回复: 4

[原创] Windows和Linux下的文件共享

[复制链接]
发表于 2024-7-14 17:57 | 显示全部楼层 |阅读模式
最早使用Samba
这个在Winxp时代很好用,在Linux下安装服务,Windows就直接能访问了,但设置比较麻烦,到了Win10以后,还需要设置Smb的版本,现在已经不再使用了
ssh或ftp
这个一直在使用,Linux下直接启动sshd就可以了,Windows下使用Winscp或TotalCmd就能愉快的访问了。Windows下安装Xlight就能启动ftp或sftp服务了,Linux下使用sshfs或Curlftpfs能直接映射到本地,使用也非常方便,WinXp--Win10下Xlight都能工作。
ChFS
http://iscute.cn/chfs在这个网址上能直接下载,在Veket20下试验成功,Winxp和Win10下运行也没有问题,它能开启一个网页服务,直接在网页上就能上传下载文件了,也非常好用。
aa.png
发表于 2024-7-14 18:21 | 显示全部楼层
http://www.lucky8k.com/thread-135043-1-1.html
这个说的是啥问题?
楼主是这方面的专家分析下
 楼主| 发表于 2024-7-15 11:07 | 显示全部楼层
我现在用的是非常古老的一个版本
OpenSSH_5.1p1, OpenSSL 0.9.8o 01 Jun 2010
usage: sshd [-46DdeiqTt] [-b bits] [-C connection_spec] [-f config_file]
            [-g login_grace_time] [-h host_key_file] [-k key_gen_time]
            [-o option] [-p port] [-u len]
我记得好像是puppy4.1版里的,只有一个文件332k,我用的Samba也是 Puppy4.1版里面的,我个人认为家用版的Linux不用追求高版本,没有必要在意软件是否有漏洞,只要软件内部没有木马,速度快,我就永远使用这个版本。
下面是我的sshd_config
#   $OpenBSD: sshd_config,v 1.80 2008/07/02 02:24:18 djm Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options change a
# default value.

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# Disable legacy (protocol version 1) support in the server for new
# installations. In future the default will change to require explicit
# activation of protocol 1
Protocol 2

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 1024

# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile  .ssh/authorized_keys

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
# /* GSSAPIAuthentication no */
#GSSAPICleanupCredentials yes

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
#UsePAM no

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no
#ChrootDirectory none

# no default banner path
#Banner none

# override default of no subsystems
Subsystem   sftp    /usr/libexec/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#   X11Forwarding no
#   AllowTcpForwarding no
#   ForceCommand cvs server

还有一个文件是  File: /usr/libexec/sftp-server      Size: 43516,只有这两个文件就能使用sftp和sshd的功能了。

需要注意:/etc/ssh及其内部的文件,它们的权限设置成600,否则sshd不会启动。
发表于 2024-7-15 12:38 | 显示全部楼层
学习了
发表于 2024-7-16 22:29 | 显示全部楼层
ChFS是很方便
您需要登录后才可以回帖 登录 | 要注册

本版积分规则

QQ|手机版|Archiver|veket官方网站论坛 ( 粤ICP备 11052856 )

GMT+8, 2025-5-1 19:38

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表