ubantu ssh login settings and samba settings

Install samba related packages 

sudo apt-get install samba

sudo apt-get install smbclient

samba -V to see if the installation was successful

south you /etc/samba/smb.conf 

[share]

   comment = share folder

   browseable = yes

   path = /home/yangyun/share

   create mask = 0777

   directory mask = 0777

   valid users = zhang

   force user = nobody

   force group = nogroup

   public = yes

   writable = yes

   available = yes

:wq!

Exit Save

sudo smbpasswd -a yangyun

sudo /etc/init.d/samba restart

mapped network drive under windows

\\+ ip\share

because the share /etc/samba/smb.conf [share]

////////////////////////////////////////////////////////////

ssh configuration

sudo apt-get install ssh

sudo vi /etc/ssh/sshd_config

modify

PermitRootLogin yes # allow root login 
PermitEmptyPasswords no # do not allow an empty password 
PasswordAuthentication yes # Set whether to use password authentication.

sudo /etc/init.d/ssh restart

ps -ef | grep ssh

To see if ok 

Guess you like

Origin www.cnblogs.com/yysong8020/p/11315576.html