<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BlueHost美国虚拟主机使用指导 &#187; SSH</title>
	<atom:link href="http://www.bluehostcn.com/archives/tag/ssh/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bluehostcn.com</link>
	<description>BlueHost导购，使用指南</description>
	<lastBuildDate>Thu, 13 May 2010 07:45:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Bluehost使用SSH备份恢复数据库</title>
		<link>http://www.bluehostcn.com/archives/549</link>
		<comments>http://www.bluehostcn.com/archives/549#comments</comments>
		<pubDate>Mon, 18 Jan 2010 09:14:21 +0000</pubDate>
		<dc:creator>user1</dc:creator>
				<category><![CDATA[BlueHost使用说明]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[备份]]></category>
		<category><![CDATA[恢复]]></category>

		<guid isPermaLink="false">http://www.bluehostcn.com/?p=549</guid>
		<description><![CDATA[购买了Bluehost主机的用户可以免费申请开通SSH，申请开通SSH，可以参考这里：http://bbs.idcspy.com/thread-41314-1-1.html
下面，我们就介绍一下Bluehost主机如何通过SSH备份、恢复数据库。
备份数据库：
1、使用putty登录SSH，输入主机用户名和密码

2、显示登录成功信息，表示已经登录进去了

3、使用命令&#8221;cd public_html&#8221;进入到public_html目录下，因为我们要把数据库备份文件放到这个目录下面（你需要把数据库备份文件放到哪个目录下面，就要先进入到这个目录）

4、输入备份数据库命令：mysqldump -u数据库用户名 -p数据库密码 数据库名称 &#62; 数据库备份文件名.sql（不要用中文）

5、敲回车，稍等片刻，如果没有什么错误提示就表示数据库已经备份成功了，输入命令: ls就能查看当前目录下的文件和文件夹，可以看到上面备份的数据库文件

恢复数据库
准备工作：在恢复数据库前，要先创建好数据库、数据库用户，把数据库用户绑定到数据库上面
1、进入到你存放数据库文件的那个目录下面，输入命令：mysql -u数据库用户名 -p数据库密码 数据库名称 &#60; 数据库备份文件.sql

2、敲回车，稍等片刻，如果没有出现什么提示信息，恭喜你，数据库已经导入成功了
]]></description>
		<wfw:commentRss>http://www.bluehostcn.com/archives/549/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BlueHost开通SSH全过程</title>
		<link>http://www.bluehostcn.com/archives/491</link>
		<comments>http://www.bluehostcn.com/archives/491#comments</comments>
		<pubDate>Fri, 21 Aug 2009 03:30:27 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[BlueHost使用说明]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.bluehostcn.com/?p=491</guid>
		<description><![CDATA[大家都知道SSH传输文件，备份数据库都是非常方便的，所以，开通BlueHost主机的SSH在某些情况下是必要的，那么，就来看看笔者的一位朋友开通SSH时的情况吧，它开通SSH时发送的邮件如下：
Hi bluehost:
Would you please be kind enough to give me the shell access right?
My ID is “****”. I have attached my id card. thanks.

BlueHost收到你的邮件后会给你回复如下邮件：
Welcome to Bluehost Technical Support Center. Thank you for providing the photo ID. Unfortunately, we work only with English. Please submit a photo ID using English language.
Before we can make any account [...]]]></description>
		<wfw:commentRss>http://www.bluehostcn.com/archives/491/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bluehost主机的SSH开通方法</title>
		<link>http://www.bluehostcn.com/archives/328</link>
		<comments>http://www.bluehostcn.com/archives/328#comments</comments>
		<pubDate>Thu, 30 Apr 2009 02:41:35 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[BlueHost使用说明]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.bluehostcn.com/?p=328</guid>
		<description><![CDATA[bluehost空间默认是不开通ssh/shell的，需要提供证件，如驾照，护照，或者身份证 driver’s licence or passport，于是发了个邮件，附了你的身份证等证件的扫描复印件EMAIL过去就可以了。
下面是申请邮件范本可以照这个发送申请开通bluehost主机ssh 的权限。
Hi bluehost:
Would you please be kind enough to give me the shell access right?
My ID is “****”. I have attached my id card. thanks. 
邮件很快被回复了，一般中国时间中午发的，BLUEHOST是半夜还值班的真正的24/7的服务。 （建议最好发护照的数码照片，就用你的数码相机拍一个能看见你ID信息的那页就可以了。安全不用担心，BLUEHOST很有信用，千万人已经发送过了，没有问题。）
如果是身份证，会出现下面情况。
Dear Customer,
We will need you to email in a copy of passport or a valid US drivers licenese.
If you have any further questions please let us know.
Regards, Scott Dennis
Bluehost Technical Support Team
support@bluehost.com
BlueHost.com
居然被拒绝了，中国身份证可能一些客服不认识。再发一封说明信。（图片不要用ZIP压缩，以免耽误你的时间）
Hi Scott Dennis:
I have no passport nor US drivers licenese, I’m from China. I’ve already send a copy my Chinese id card.
So that means that I don’t have the right? what a pity.
uploading files via ftp is so slow, I want to zip it and then unzip it in shell.
晚上开看了下邮件，已经通过了。
Hello,
I have decided to enable this with just your id card. SSH is now enabled.
Felippe Burk
Bluehost
Level 3 Support Team
support@bluehost.com
他们服务比较及时，开始尽量使用护照图片发过去。以节省开通bluehost ssh 的时间
]]></description>
		<wfw:commentRss>http://www.bluehostcn.com/archives/328/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BlueHost用SSH恢复误删文件</title>
		<link>http://www.bluehostcn.com/archives/309</link>
		<comments>http://www.bluehostcn.com/archives/309#comments</comments>
		<pubDate>Mon, 13 Apr 2009 01:23:14 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[BlueHost使用说明]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.bluehostcn.com/?p=309</guid>
		<description><![CDATA[如果没有开通SSH，最简单的方法就是寻求BlueHost技术支持，要恢复账号的文件资料到最近的一次备份，然后，按要求提供功能变数名称，账号、密码、身份证号码即可恢复。
如何恢复在BlueHost上误删的文件呢？在给一个用户添加FTP账户的时候，把目录添加到根目录下，在加上BlueHost无法修改账户的目录，所以，就打算将这个账户删除重新建立，结果删除的时候点击了“连同文件一起删除”的按钮，当时就懵了，那叫一个郁闷&#8230;&#8230;
正在郁闷的时候，突然想起以前在BlueHost主机的SSH中好像看到有这样的文件夹xxx.daily和xxx.weekly，于是就好奇的进去了，发现里面的文件和账户下的文件是一模一样的，这个就是自己账户下的两种频率的备份，一个是每天备份，一个每周备份，把按天备份的这个文件夹COPY到刚才不小心删掉的地方，就OK了，所以，出现问题时，一定要保持冷静，这样才能想到完美的解决方法。
假设你的SSH账号是whode，如果你删除的是~public_html/xxx文件夹，你会发现在/home目录下有两个文件夹/home/whode.daily和/home/whode.weekly，恢复用的两个命令就OK了：
首先创建被删除的那个目录，在网站的根目录下mkdir xxx
然后将备份文件copy过即可cp /home/whode.daily/public_html/xxx/*./xxx/
就这么简单，所以，你最好是请BlueHost的客服帮你开通SSH账户
]]></description>
		<wfw:commentRss>http://www.bluehostcn.com/archives/309/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BlueHost主机SSH恢复文件</title>
		<link>http://www.bluehostcn.com/archives/192</link>
		<comments>http://www.bluehostcn.com/archives/192#comments</comments>
		<pubDate>Fri, 26 Dec 2008 01:54:17 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[BlueHost使用说明]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.bluehostcn.com/?p=192</guid>
		<description><![CDATA[BlueHost主机上的文件如果不小心被误删点，如果没有开SSH权限，最简单的方法就是寻求Bluehost技术支持，要求恢复本帐号的文件数据至最近的一次备份，然后按要求提供域名，帐号密码，身份证号码即可妥善得以恢复。
通过我的经历讲一讲如何在Bluehost上恢复误删的文件。今天给一个用户添加FTP账户的时候由于目录添加到合租的根目录下了，再加上Bluehost无法修改账户的目录，所以我就打算将这个帐号删除重新建立，结果删除的时候点击了“连同文件夹一起删除”的按钮，虽然我在点击之后的0.1秒就反应过来了，也立即停止浏览器对服务器的通信，紧接着关闭浏览器，但是已经来不及了，http请求已经发出，服务器很听话的删除了这个目录，要知道这个目录下面有5个合租伙伴的网站啊，当时我就懵了，说实话，好多伙伴都算是新手，没有备份的这个习惯，即使是简单的web文件备份他们可能都没有做，不过我也没有办法了，只有发邮件告诉这个几个伙伴，希望他们自己恢复，并且严肃的道歉了，虽然知道道歉没有用，但是我也没有其他的办法了。
正在郁闷中，突然想到以前在Bluehost的 SSH中好像看到有这样的文件夹xxx.daily和xxx.weekly，当然就好奇的进去了，发现里面的文件结构和账户下的文件结构一模一样，这不就是自己帐号下的两种频率的备份文件么，一个是每天备份的，一个是每周备份的。我把按天备份的这个文件夹copy到刚才不小心删掉的地方不就得了么？所以呀，出问题了首先一定要保持冷静，这样才能想到完美的解决办法的。
那么备份的方法就是直接将目录copy过来。假设你的SSH帐号是whode，如果你删除的是 ~public_html/xxx文件夹,你会发现在/home目录下有两个文件夹 /home/whode.daily 和 /home/whode.weekly，由于我删除的时间是美国的上午，没有超过一天，所以我就用daily下面的文件夹进行恢复了。就用这个例子来说，恢复用两个命令就可以了：
首先创建被删除的那个目录，在网站的根目录下 mkdir xxx;
然后将备份文件copy过来即可 cp /home/whode.daily/public_html/xxx/* ./xxx/
对就这么简单，所以你最好是请Bluehost的Live Chat客服给你开通SSH账户
]]></description>
		<wfw:commentRss>http://www.bluehostcn.com/archives/192/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BlueHost SSH的开通方法</title>
		<link>http://www.bluehostcn.com/archives/177</link>
		<comments>http://www.bluehostcn.com/archives/177#comments</comments>
		<pubDate>Wed, 10 Dec 2008 01:57:51 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[BlueHost使用说明]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.bluehostcn.com/?p=177</guid>
		<description><![CDATA[BlueHost空间默认是不开通ssh/shell的，需要开通时，你提供相关证件给它们，如驾照，护照，或者身份证 driver’s licence or passport，然后，发送邮件给他们，把你的身份证等证件的扫描复印件通过Email，发送给它们客服，就可以了。
下面是申请邮件范本可以照这个发送申请开通bluehost ssh 的权限。
    Hi bluehost:
    Would you please be kind enough to give me the shell access right?
    My ID is “****”. I have attached my id card. thanks.
发送邮件后，它们会很快回复你的，建议最好发护照的数码照片，就用你的数码相机拍一个能看见你ID信息的那页就可以了。安全不用担心，BLUEHOST很有信用，千万人已经发送过了，没有问题。如果是身份证，会出现下面情况。
    Dear Customer,
    We will need you to email in a copy of passport or a valid US drivers licenese.
    If you have [...]]]></description>
		<wfw:commentRss>http://www.bluehostcn.com/archives/177/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
