Inside the office machine company mostly windows , but now, with cloud computing, docker, linux and other increasingly rise, requires a lot of linux server operation. The most important and immediate need to upload files to the windows above linux servers go above. There think the next major way; 1 . SFTP tools directly for transmission. 2 . The following Linux mount windows shared directory. 3 . Create a shared directory so that the orientation of windows linux machine using samba way.
4. Create the vsftpd service provides the ftp protocol service. One by one will be described as follows:
1. sftp
In fact, it is using sftp ssh protocol for file transfers. The port number is 22 but also the security protocol. 21 ports safer than FTP's.
The easiest way is to use xshell and xftp tools for file transfer
Transmission interface is typically:
2. Linux on top of mount windows shared directory
Because different versions of different windows problems cifs supported version of it may need more attention.
Vers = -o mount.cifs 1.0 , = zhaobsh username, password = youpassword, Domain = Home // 10.100.1.163/ production server / database test / / test
Notes:
1. Vers = 1.0 windows2008 previous version can only be self-sustaining version 1.0 Vers
2. Note that the directory must be shared with a slash can not bring.
3. Note that there is a shared directory is not a slash backslash.
3. Use the linux samba directory shared out.
The first step in installing Samba
yum install Samba -y
2 . The second step to modify the configuration file
on my side profile is:
that you back up
mv /etc/samba/smb.conf /etc/samba/smb.conf.back
then deal with its own configuration file
vim
/etc/samba/smb.conf
I am content here
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
[zhaobsh]
comment = zhaobsh
path = /home/zhaobsh
public = no
writable = yes
The third step is to create a linux user useradd -s / bin / bash -d / Home / zhaobsh zhaobsh set password
passwd zhaobsh
The fourth step of the user setting smb
the smbpasswd -a zhaobsh
The fifth step to start the server and the server automatically set the service to start
systemctl enable smb && systemctl Start smb
Then test
Enter the password to access attempts
You can log
Test file upload