使用Cyberduck连接swift云存储服务

环境说明:swift服务端安装在UBUNTU12.04LTS,我要从办公系统windows xp机器访问该存储系统。

下载最新版本cyberduck: http://cyberduck.ch/

配置swift为HTTPS连接方式:
首先去swift-proxy服务端,修改配置文件:
 /etc/swift/proxy-server.conf

[DEFAULT]
bind_port = 443
bind_ip = 172.16.6.100
cert_file = /etc/swift/cert.crt
key_file = /etc/swift/cert.key
log_level = DEBUG
log_facility = LOG_LOCAL1
user = swift

[pipeline:main]
pipeline =  healthcheck cache tempauth proxy-server

[app:proxy-server]
use = egg:swift#proxy
allow_account_management= ture
account_autocreate = true

[filter:tempauth]
use = egg:swift#tempauth
user_admin_admin = admin .admin .reseller_admin
user_test_tester = testing .admin
user_test2_tester2 = testing2 .admin
user_test_tester3 = testing3
[filter:healthcheck]
use = egg:swift#healthcheck

[filter:cache]
use = egg:swift#memcache
memcache_servers = 172.16.6.100:11211

以上加粗的地方是修改的配置,主要是把原来未做HTTPS的改成HTTPS,端口改为了443。

接下来创建数字证书:

cd /etc/swift
openssl req -new -x509 -nodes -out cert.crt -keyout cert.key

确保IPtables打开了443的访问权限,这里略去。

重启swift-proxy服务: 

  swift-init proxy restart

接下来,在客户端进行配置:

修改CyberDuck默认的一个访问地址: 在windows下打开文件:

C:\Documents and Settings\yourname\Application Data\Cyberduck\Cyberduck.exe_Url_2lo40rrsb1ocwd4jaezr0bb42ppyulnb\4.2.1.9350\user.config

以上距离路径以实际为准。

添加一个属性:<setting name="cf.authentication.context" value="/auth/v1.0" /> 到setting内。

打开cyberDuck,创建一个新连接:

连接,访问即可。

 

 

 

posted @ 2012-05-14 14:36  Hello! Linux 博客  Views(1772)  Comments(0Edit  收藏  举报