Samba server and remote logon ssh, samba Remote logon ssh

Source: Internet
Author: User
Tags ssh server

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.