Window????Linux????
???????????? ???????[ 2015/11/9 11:04:03 ] ?????????????? Windows
????????????
????windows?????????192.168.1.100 ???:abc ????:123 ????????У?share
????linux?????????192.168.1.200 ????def ????456 ????????У?/home/def/share
???????????????????????SELINUX?????????????Щ?????е????????????????????????????????
?????????????????service iptables stop
???????SELINUX????setenforce 0
??????????linux??windows????????й???
????????windows????linux
????????1?????????????
????1??????????????vi /etc/ssh/sshd_config????????Port???????????????????????????????????????
????2??????ssh????service sshd restart
????3????windows?°??SSH Secure SHELL???????????и??????SSH Secure File Transfer Client??????????
????hostname:192.168.1.200(?????DNS????????д??linux??????)
????port:22???????????????????????
????username:abc(???????linux?????????)
????password:123
?????????????????windows????linux??????????????
????????2??SAMBA????
????1?????samba:?????????????????????rpm -qa | grep samba????е?????????£?????????????RPM???????????????yum
????yum??????????????????????????????????????????????????????????????????????а??????????????yum install samba?????????????????????????????
????2??????????????У???????mkdir -m 777 /home/def/share
????3?????/etc/samba/smb.conf?????????????????????
????workgroup = WORKGROUP???????windows?????????????????????????
????hosts allow = 192.168.1.100??????????IP?????????д???windows?????
???????????????β????
????[public]????????????windows?????????????????
????comment = Public Stuff??????
????path = /home/def/share??????????
????public = yes????????
????writable = yes????д??
??????????????Щ??????????????????????????????????????????????????????????????
????4??????smb????service smb restart
????5??????samba?????smbpasswd -a def????????????????????????????????????????????????????def?????????????е?
??????????е???????????????????????????????????????????????????????????????????
????6??windows?????????????У?????\192.168.1.200??????smb????????????
????????????:linux????windows
???????????????????????
??????linux????? mount -o username=abc //192.168.1.100/share /mnt/share????????????????????windows????123
??????????????????????????????????????????????????????????????linux?μ?????????ext234????windows??????NTFS?????????linux?????????????????????????????????????е?????????????????????
???????????linux????????й???
???????????????
????1????A???????????????У?mkdir -m 777 /home/share
????2?????/etc/exports??????????? /home/share *(rw)????????/home/share????????λ???*??????????????????????дIP?????rw????д
????3??????nfs????service nfs restart
????4????B????????mount -t nfs 192.168.1.100:/home/share /mnt/share?????????????????????
????5????????B???????????????????????:df
???????????????SCP??????
??????????????????????????????????? scp /home/share(?) 192.168.1.200:/home/share?????????????????????????????man scp
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11