Samba server and remote logon ssh, samba Remote logon ssh
Author: Xiang Si Yu Source: http://www.cnblogs.com/xiang-siyu welcome reprint, please also keep this statement. Thank you!
Deepin installation and configuration of samba Server
Install apt-get install samba
Create a user (a directory already exists in the system)
Create the passwd file touch/etc/samba/smbpasswd
Smbpasswd-a username
Password:
Edit the configuration file:
Vim/etc/samba/smb. conf
The configuration information is modified as follows:
[Global]
Workgroup = WORKGROUP (workgroup)
Server string = % h server
Netbios name = deepin (host name)
#==================================== Share Definitions ====================== ==========
[Upload File] (Name displayed in windows)
Comment = share directory description
Path =/home/deepin/Program path
Valid users = deepin samba user
Public = yes
Writeable = yes
Browseable = yes
Read only = no
In addition, you need to configure the shared file as readable and writable chmod 777/home/deepin/Program.
Restart the samba service.
/Etc/init. d/samba restart
Enter the \ linux IP address in windows.
So far, samba has been set up and configured.
Bytes -------------------------------------------------------------------------------------------------
Linux Remote Logon (using ssh)
Installation 1. Install the ssh server on the server to be logged on
# Apt-get install openssh-server
2. Start ssh-server
#/Etc/init. d/ssh start (or restart)
No configuration required
Then use secureCRT on windows
Create an SSH2 protocol. Next, enter the linux IP address in Hostname. Next, use the linux user name and password to log on.
Bytes ---------------------------------------------------------------------------------------------------
Debian sets samba and ssh services to start automatically
The debian linux does not have chkconfig to configure the startup service.
Install apt-get install sysv-rc-conf
# Sysv-rc-conf smb on
# Sysc-rc-conf ssh on
Bytes ---------------------------------------------------------------------------------------------------
SecureCRT does not display Chinese Characters
In secureCRT, select option-> session options-> appearance
Modify character encoding to UTF-8
In the above font, select normal in the normal font.