Linnux远程控制实现

Here is the steps for remote control my terminal.

1. Install the ssh in the remote terminal  eg. Input: sudo apt-get install openssh-server 

2. In Windos system, download the putty first. After installing it, generate the public key and private key.

3. Log in the remote terminal with IP address and client password, use "mdkcir" to build the a new folder named ".ssh", then use "nano" to build "authorized_keys" in the directory and put the public key in it.

4. Go to set the configuration for logging in next time include IP address and Host name. 

5. Prevent hackers by disabling password authentication for SSH, nano /etc/ssh/sshd_config, then set ChallengeResponseAuthentication no; Password Authentication no; UsePAM no.  Finally, restart ssh.


posted @ 2015-11-03 09:21  starwp  阅读(183)  评论(0)    收藏  举报