Merge pull request #370 from KayGuoWhu/master

翻译完成
This commit is contained in:
tinyeyeser 2013-11-06 23:37:59 -08:00
commit c8186918c3
2 changed files with 66 additions and 65 deletions

View File

@ -1,65 +0,0 @@
How to Control Your Linux PC with an Android Device
================================================================================
**The following tutorial will teach all Linux users how to install SSH on their systems, in order to access their computers remotely from an Android tablet of smartphone.**
![](http://i1-news.softpedia-static.com/images/news2/How-to-Control-Your-Linux-PC-with-an-Android-Device-396004-2.jpg)
These days we all have a tablet or phablet device, and we often find ourselves later at night watching a movie or TV show, listening to music, or reading a good book. You can call this article a tutorial for the lazy, for people who are too tired at night to start some process(es) on their computer, move, delete, copy or rename some files, or even to shutdown their PC.
Yes, there are all sorts of remote desktop solutions out there, but many costs a fortune or are badly implemented and don't work as expected, forcing you to go to the PC after all and do the stuff you want to do.
For this tutorial we will use a simple, secure and effective protocol called SSH (Secure Shell), which can be easily installed from your default software repositories (openssh in Arch Linux, or openssh-server in Ubuntu).
### Configuring the SSH server ###
After installation, you will need to do basic configuration for the SSH server. For this, you need to edit the /etc/ssh/sshd_config file with a text editor.
1. Add the following line (where yourusername will be replaced with your actual username on your Linux box) at the end of the file:
AllowUsers yourusername
2. Uncomment the "#PermitRootLogin yes" line and add "no" instead of "yes" making it look like this:
PermitRootLogin no
2. For security reasons, you need to modify the 22 port, which is used by default on SSH connections, to a higher port, such as 55441 in our example below (but don't use 55441, be original, find another five or four digit number). To do this, uncomment and edit the "#Port 22" line to look like this:
Port 55441
### Starting the SSH server ###
On Ubuntu, the SSH service can be started using the following command:
sudo /etc/init.d/ssh start
...and every time you make modifications to the aforementioned configuration file, you can restart it using the following command:
sudo /etc/init.d/ssh restart
On Arch Linux you can start the SSH service using the following command:
sudo systemctl start sshd
### Configuring the SSH client on your Android device ###
One of the best SSH clients for Android appears to be JuiceSSH, which is free, but those who find it poor in functionality, can pay a small amount of money for more advanced features, such as Amazon AWS/EC2 integration, team collaboration, and much more.
Once the software is installed, open it and you will be asked to add an encryption password, which will keep your connections safe, encrypted with AES-256 so no one can access them in case your device is stolen.
![](http://i1-news.softpedia-static.com/images/extra/LINUX/large/sshlinuxandroid-large_001.jpg)
Now, add a new connection by choosing a name, the IP address of your computer, the port set above, and an identity, which needs to be created...
![](http://i1-news.softpedia-static.com/images/extra/LINUX/large/sshlinuxandroid-large_002.jpg)
![](http://i1-news.softpedia-static.com/images/extra/LINUX/large/sshlinuxandroid-large_003.jpg)
...and here's my Arch Linux box, as viewed from the JuiceSSH client on my Android tablet. Do not hesitate to comment below if you run into problems during this tutorial.
--------------------------------------------------------------------------------
via: http://news.softpedia.com/news/How-to-Control-Your-Linux-PC-with-an-Android-Device-396004.shtml
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,66 @@
KayGuoWhu翻译中
使用安卓设备控制你的Linux PC
================================================================================
**下面的教程会指导所有的Linux使用者如何在系统上安装SSH以便通过安卓智能手机远程访问他们的电脑。**
![](http://i1-news.softpedia-static.com/images/news2/How-to-Control-Your-Linux-PC-with-an-Android-Device-396004-2.jpg)
如今我们所有人都拥有一台平板或出触屏手机我们经常使用它们在深夜里看电影或电视秀听歌或者阅读一本好书。你可以把这篇文章称作是为那些在大晚上因为太过疲惫而懒得去开启他们电脑上的某些应用程序移动、删除复制或重命名某些文件甚至关掉PC的懒人们准备的教程。
的确,已经有各种各样的远程桌面解决方案,但是许多方案费用很高,或者实现效果很糟糕,无法像预期一样运行,迫使你最终还是得去电脑上做你原本想做的事情。
在这个教程里面我们将使用一种简单、安全、高效的协议它被称为SSH (Secure Shell)很容易从默认的软件仓库中安装在Arch linx中是openssh在Ubuntu中时openssh-server
### 配置SSH服务器 ###
在安装完成后你需要为SSH服务器进行基本配置。为此你需要使用文本编辑器编辑/etc/ssh/sshd_config这个文件。
1.在文件尾部添加下面一行yourusername的地方会被你的Linux机器上真实的用户名代替
AllowUsers yourusername
2.取消"#PermitRootLogin"这行注释,把"no"替换成"yes"
PermitRootLogin no
3.为了安全起见你需要修改SSH 连接默认的port 22端口到一个更大编号的端口譬如在我们的例子中是55441
但不要使用55441这是初始的找另一个四位或者五位数字。因此取消注释并编辑"#Port 22"如下:
Port 55441
### 开启SSH服务器###
在Ubuntu上SSH服务通过下面的命令启动
sudo /etc/init.d/ssh start
当你每次修改上述配置文件时,都需要通过下面的命令重启:
sudo /etc/init.d/ssh restart
在Arch Linux上你可以使用下面的命令启动SSH服务
sudo systemctl start sshd
### 配置安卓设备上的SSH客户端###
JuiceSSH似乎是安卓上最好的SSH客户端之一而且是免费的。同时如果你认为它的功能不好可以花费少量的资金去获取更多高级的特性譬如亚马逊 AWS/EC2 集成,团队协作,以及更多其它的特性。
一旦软件安装完毕开启它然后你会要求输入一个加密的密码以保证安全连接的安全。这个密码由WES-256进行加密因此除非你的设备被偷否则没有人能够获取他们。
![](http://i1-news.softpedia-static.com/images/extra/LINUX/large/sshlinuxandroid-large_001.jpg)
现在添加一个新连接选择名称你的电脑的IP地址上面设定的端口号和一个需要被创建的身份。
![](http://i1-news.softpedia-static.com/images/extra/LINUX/large/sshlinuxandroid-large_002.jpg)
![](http://i1-news.softpedia-static.com/images/extra/LINUX/large/sshlinuxandroid-large_003.jpg)
这就是我的Arch Linux盒子可以通过我的安卓平板上的JuiceSSH客户端访问到。如果在这个教程中你遇到问题请在下面进行评论。
--------------------------------------------------------------------------------
via: http://news.softpedia.com/news/How-to-Control-Your-Linux-PC-with-an-Android-Device-396004.shtml
译者:[KayGuoWhu](https://github.com/KayGuoWhu) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出