1. ssh
sudo apt-get install openssh
vi /etc/ssh/sshd_config
UseDns no
ClientAliveInterval 30
ClientAliveCountMax 6
2. samba
sudo apt-get install samba samba-common
删除掉或者替换掉 /etc/samba/smb.conf
sudo smbpasswd -a myself # 创建smb用户并添加密码。
-
[global]
-
workgroup = WORKGROUP
-
server string = Samba Server %v
-
netbios name = centos
-
security = user
-
map to guest = bad user
-
dns proxy = no
-
#============================ Share Definitions ==============================
-
[centos_samba_share]
-
comment = AAA home directory
-
path = /home/myself/
-
browsable = yes
-
writable = yes
-
guest ok = yes
- read only = no
systemctl enable nmb
systemctl restart smb
systemctl restart nmb
3. vim
下载jeffy-vim-read,http://blog.chinaunix.net/uid-26833883-id-3431275.html
此插件也可解决,远程ssh使用vim,方向键无法用的问题