SSH service and peanut shell domain name analysis

Source: Internet
Author: User
Tags automake

First, the installation instructions for the CentOS 5 example

1, install the necessary development kits

 [[email protected] ~]# yum install gcc gcc-c++ autoconf automake

2. Download phddns-2.0.2.16556.tar.gz to a directory

 [[email protected] ~]# wget http://download.oray.com/peanuthull/phddns-2.0.2.16556.tar.gz

3. Unzip all Files

 [[email protected] ~]# tar zxvf phddns-2.0.2.16556.tar.gz

4. Enter the directory and compile

[[Email protected]~]#CD Phddns-2.0.2.16556[[Email protected] Phddns-2.0.2.16556]#Aclocal[[Email protected] Phddns-2.0.2.16556]#Autoconf[[Email protected] Phddns-2.0.2.16556]#Automake[[Email protected] Phddns-2.0.2.16556]# ./Configure[[Email protected] Phddns-2.0.2.16556]# Make[[email protected] phddns< Span class= "pun" >-2.0. 2.16556]# CD Src[[email protected] Src]# ls -l phddns-< Span class= "PLN" >rwxr-xr-x 1 root root 80968 aug< Span class= "PLN" > 2 11: 18 Phddns              

5, the implementation of the compiled program and configuration (by default, using/etc/phlinux.conf, if the file does not exist automatically into the interactive configuration)

[[Email protected] src]# ./Phddns#输入服务器地址, you can use the default if there is no special caseEnterServer address(Press ENTERUsePhlinux3.Oray.Net):#输入您的Oray帐号名称EnterYourOrayAccount:#对应的Oray帐号密码Password:#选择帮定的网卡, if no special, the default can beNetwork Interface(S):Eth0:192.168.141.18Lo:127.0.0.1ChooseOne(DefaultEth0):#选择日志保存到哪个文件LogToUse(Default /Var/Log/Phddns.Log):#保存配置文件, select Yes to save directly to/etc/phlinux.conf, enter other to specify the fileSaveTo configuration file(/etc/Phlinux.Conf)? (yes/no/other # (may not have permissions to the default location) # Next the program will have interactive mode to start running 192.168. 141.18nic bind Successonstatuschanged Okconnectingonstatuschanged Okdomainlistedondomainregistered  Skyvense22.. Netonstatuschanged Okdomainsregisteredusertype : 0           

See above to indicate successful login, this time can press CTRL + C to exit the program first

6. Copy the Phddns to your desired location

[[email protected] src]# cp phddns /usr/bin/

7. Start the peanut shell in background mode and check the operation condition.

[[Email protected]~]# /Usr/Bin/Phddns-C/etc/Phlinux.Conf-Dphlinux startedAsDaemon![[Email protected]~]#Tail/Var/Log/Phddns.Log2011/08/02 11:28:58.256| ExecuteupdateOk, Beginkeepalive!2011/08/02 11:29:59.354| Sendkeepalive() 82082011/08/02 11:30:00.355| Recvkeepaliveresponse() DataComes,OPCODE:82722011/08/02 11:30:00.356| KeepaliveResponse received,Client IP: 116.231.123.962011/08/02 11:31:00.447| Sendkeepalive() 82082011/08/02 11:31:01.450|  recvkeepaliveresponse ()   Data Comes, Opcode: 82722011/08/ 02 11:31 :01.450| keepalive response Received, client ip< Span class= "pun" >: 116.231. 123.96                 

8. Exit the peanut shell

查看进程ID[[email protected] ~]# ps -A | grep phddns13731 ? 00:00:00 phlinux让后台进程退出[[email protected] ~]# kill -9 13731

9, the peanut shell added to the system when the start of operation

[[email protected] ~]# vi /etc/rc.local

Add a line to the end of the file:/usr/bin/phddns-c/etc/phlinux.conf-d

Second, SSH

SSH sub-client openssh-client and Openssh-server if you just want to login to another machine SSH only need to install Openssh-client (Ubuntu has default installation, if not then sudo apt-get install Openssh-client), if you want to make the native SSH service open, you need to install Openssh-server

 sudo apt-get install openssh-server

Then confirm that the Sshserver is started:

 ps -e |grep ssh

If you see sshd that means Ssh-server has been activated. If not, you can start this way:

 sudo /etc/init.d/ssh start

Ssh-server configuration file is located in/Etc/ssh/sshd_config, where you can define the SSH service port, the default port is 22, you can define yourself as a different port number, such as 222.

Then restart the SSH service:

 sudo /etc/init.d/ssh stop 或sudo service ssh stop sudo /etc/init.d/ssh start 或sudo service ssh start

Then use the following method to log in to SSH:

 ssh [email protected].168.1.112 username为192.168.1.112 机器上的用户,需要输入密码。

Disconnect: Exit

http://blog.uorz.me/2012/07/09/SSH%E6%9C%8D%E5%8A%A1%E5%8F%8A%E8%8A%B1%E7%94%9F%E5%A3%B3%E5%9F%9F%E5%90%8D%E8% A7%a3%e6%9e%90.html

SSH service and peanut shell domain name analysis

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.