vim,lftp,ssh,sshd配置

主要是每次重装了系统都得配置,记录一下。

vim 的配置:

syntax on

set nu
set nobackup
set cindent
set fileencodings=utf-8,gbk,ucs-bom,cp936
set incsearch ” Incremental search
set cursorline

 

lftp的配置添加:

set dns:order “inet6 inet”
debug 3 #可以显示详细的交互过程
set ftp:charset GBK
set file:charset UTF-8
alias gbk “set ftp:charset gbk;set file:charset UTF-8”
alias utf8 “set ftp:charset UTF-8;set file:charset UTF-8”

ssh配置: ~/.ssh/config

host *
ControlMaster auto
ControlPath ~/.ssh/%r@%h:%p
ControlPersist yes

/etc/ssh/ssh_config

ServerAliveInterval 10

 

 

此条目发表在Admin分类目录。将固定链接加入收藏夹。

发表回复