subime安装和连接sftp

介于在linux终端打开文件,比较负责,所以在网上搜索了一个比较好用的工具。

现将配置和安装说明如下,便于以后使用。

一、下载sublime  text 2

        运行安装文件,进行安装。

二、安装插件

      “ctrl  +", 将下面的代码copy进去后回车。

       importurllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' +'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp=                sublime.installed_packages_path(); os.makedirs( ipp ) if notos.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener(urllib2.ProxyHandler()) ); by        = urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace('', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join(ipp, pf), 'wb' ).write(by) if dh          == h else None; print('Error validatingdownload (got %s instead of %s), please try manual install' % (dh, h) if dh !=h else 'Please restart Sublime Text to finish                  installation')

三、安装sftp

      "ctrl+shift  +  p”

      输入sftp。

四、配置sftpd

     "type":"sftp",

    "sync_down_on_open": true,

    "sync_same_age": true,

    "host":"172.182.172.167",

    "user": "root",

    "password": "de22bn",

    "port": "22",

    "remote_path":"/home/www"

就可以连接了ftpd,使用了。


说明:如果要同时连接多个ftp, 就同时配置多个文件来完成相应的功能就可以了。


配置的文件以文件夹的方式存储不是以文件的方式存储。


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值