<?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>OpenPeta &#187; Remote Login Protocols</title>
	<atom:link href="http://openpeta.com/index.php/category/remote-login-protocols/feed/" rel="self" type="application/rss+xml" />
	<link>http://openpeta.com</link>
	<description>Open Mind ....  Open Source ...</description>
	<lastBuildDate>Wed, 21 Jul 2010 03:20:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Accessing Server Internet Connection Using SSH (Secure Shell)</title>
		<link>http://openpeta.com/index.php/2008/06/accessing-server-internet-connection-using-ssh-secure-shell/</link>
		<comments>http://openpeta.com/index.php/2008/06/accessing-server-internet-connection-using-ssh-secure-shell/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 04:55:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Remote Login Protocols]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2008/06/06/accessing-server-internet-connection-using-ssh-secure-shell/</guid>
		<description><![CDATA[SSH is powerfull command line tool for tranfering data through secure channel ( Using Encryption alternate to telnet command), and also you can access all components from server like firefox ,terminal etc &#8230; Scenario 1) You have 10 systems / computers connected with LAN (Local Area Network) Server IP address : 10.0.0.1 Switch / Router [...]]]></description>
			<content:encoded><![CDATA[<p>SSH is powerfull command line tool for tranfering data through secure channel ( Using Encryption alternate to telnet command), and also you can access all components from server like firefox ,terminal etc &#8230;</p>
<p>Scenario</p>
<p>   1) You have 10 systems / computers connected with LAN (Local Area Network)<br />          Server IP address : 10.0.0.1<br />          Switch / Router IP : 10.0.0.2<br />          Clients IP range : 10.0.0.3 to 10.0.0.11</p>
<p>   2) You have internet connection on your server (10.0.0.1 or any linux machine)</p>
<p>  3) Now You want to access the server internet connetion from client    (eg:10.0.0.4)</p>
<p>Here is the step by step guide for this scenario</p>
<p>Server Side Configuration (10.0.0.1)</p>
<p>   1. Download and Install the lateset version of SSH software from   <a href="http://www.openssh.org/"><span style="font-style: italic;">http://www.openssh.org/ </span></a>website<br />      (If you have any problem with installation check the Installation link<br />         <a href="http://linuxforadmin.blogspot.com/search/label/Installation">http://linuxforadmin.blogspot.com/search/label/Installation</a> )</p>
<p>   2. After installation , start the ssh server (sshd daemon) from terminal</p>
<p>       a) For Redhat and Fedora    </p>
<p>              server#<span style="font-weight: bold; font-style: italic;"> service sshd start </span></p>
<p>       b) For Debian and Ubuntu</p>
<p>              server# <span style="font-style: italic; font-weight: bold;">/etc/init.d/sshd start</span></p>
<p>Client Side Internet Access (10.0.0.4)</p>
<p>   1. Goto terminal  and type the following command</p>
<p>             client# <span style="font-weight: bold; font-style: italic;">ssh -X  antony@10.0.0.1</span></p>
<p>       Now you need to provide password for antony<br />       (antony is the normal user of server system 10.0.0.1)</p>
<p>   2. After getting the connection you can access the server terminal<br />             server#</p>
<p>   3. Here type firefox or konqureor or opera<br />             server#<span style="font-weight: bold; font-style: italic;"> firefox  </span></p>
<p>   4. Now firefox will open and you can access the internet conneciton from server</p>
<p>Note : when you want to save or download the file , that will be stored into server system only.</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2008/06/accessing-server-internet-connection-using-ssh-secure-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to shutdown all linux clients from server in your network (LAN)</title>
		<link>http://openpeta.com/index.php/2007/10/how-to-shutdown-all-linux-clients-from-server-in-your-network-lan/</link>
		<comments>http://openpeta.com/index.php/2007/10/how-to-shutdown-all-linux-clients-from-server-in-your-network-lan/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 05:31:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Remote Login Protocols]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2007/10/12/how-to-shutdown-all-linux-clients-from-server-in-your-network-lan/</guid>
		<description><![CDATA[Consider this scenario,This is the sample LAN. Now i am going to configure the server and 3 clients (for shutting down 3 clients from server) .Using Secure Shell (SSH) , we can execute any terminal commands like shutdown and halt on the remote system. but we need to enter the password for connecting remote system. [...]]]></description>
			<content:encoded><![CDATA[<p>Consider this scenario,<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_5EsXiRiSJS0/Rw8EZ6JNpXI/AAAAAAAAACs/RnYTFc8zbFI/s1600-h/ssh2.bmp"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_5EsXiRiSJS0/Rw8EZ6JNpXI/AAAAAAAAACs/RnYTFc8zbFI/s320/ssh2.bmp" alt="" id="BLOGGER_PHOTO_ID_5120316144494683506" border="0" /></a>This is the sample LAN. Now i am going to configure the server and 3 clients (for shutting down 3 clients from server) .Using  Secure Shell (SSH) , we can execute any terminal commands like shutdown and halt on the remote system. but we need to enter the password for connecting remote system. By configuring public key both server and client , we can easily logon to the remote system without using password and then we can execute the shutdown command</p>
<p>Server Side (192.168.3.100)<br />1) Generate public key</p>
<p><span style="font-weight: bold; font-style: italic;">    root@myserver#ssh-keygen -t dsa -f .ssh/id_dsa</span><br />Generating public/private dsa key pair.<br />.ssh/id_dsa already exists.<br />Overwrite (y/n)? y<br />Enter passphrase (empty for no passphrase):<br />Enter same passphrase again:<br />Your identification has been saved in .ssh/id_dsa.<br />Your public key has been saved in .ssh/id_dsa.pub.<br />The key fingerprint is:<br />a6:3e:4d:48:af:73:04:d0:53:82:7d:ba:98:b6:fb:dd root@myserver</p>
<p>(Leave passphrase &#8211; Simply press enter key]</p>
<p>2) copy the server (192.168.3.100) public key to remote system (192.168.3.101)</p>
<p><span style="font-weight: bold; font-style: italic;"> root@myserver#cd .ssh</span><br /><span style="font-weight: bold;font-size:100%;" >    root@myserver#scp id_dsa.pub root@192.168.3.101:~/.ssh/id_dsa.pub</span><br />The authenticity of host &#8217;192.168.3.101 (192.168.3.101)&#8217; can&#8217;t be established.<br />RSA key fingerprint is 5c:5b:84:54:a9:95:6b:64:85:74:9b:cc:ce:60:ed:1d.<br />Are you sure you want to continue connecting (yes/no)? yes<br />Warning: Permanently added &#8217;192.168.3.101&#8242; (RSA) to the list of known hosts.<br />root@192.168.3.101&#8242;s password:<br />id_dsa.pub                                    100%  603     0.6KB/s   00:00<br />root@myserver#</p>
<p>3) login to remote host(192.168.3.101) from local (192.168.3.100)</p>
<p><span style="font-weight: bold; font-style: italic;">root@myserver#ssh -X  root@192.168.3.101</span><br />root@192.168.3.101&#8242;s password:<br />Last login: Fri Oct  5 11:51:37 2007<br />Starting MySQL:                                            [  OK  ]<br />Starting httpd:<br />[root@client1 ~]#</p>
<p>4) In remote system append the public key to authorized_keys file</p>
<p><span style="font-weight: bold; font-style: italic;">    [root@client1 ~]# cd .ssh</span><br /><span style="font-weight: bold; font-style: italic;">    [root@client1 .ssh]# cat id_dsa.pub >> authorized_keys</span><br /><span style="font-weight: bold; font-style: italic;">    [root@client1 .ssh]# chmod 640 authorized_keys</span><br /><span style="font-weight: bold; font-style: italic;">    [root@client1 .ssh]# rm id_dsa.pub</span><br />rm: remove regular file `id_dsa.pub&#8217;? y<br />    [root@client1 .ssh]#exit</p>
<p>5) Now you can logon to the remote (192.168.3.101) system without password from your server (192.168.3.100)</p>
<p>6) Execute the shutdown command from server (for shutdown the client)</p>
<p><span style="font-weight: bold; font-style: italic;">     root@myserver#ssh -X 192.168.3.101 halt</span></p>
<p>The  same way you can configure the client 2, and client 3 systems .</p>
<p>If the network has more number of systems , then you can use the following shell script in server for shutting down all client machines  after configuring the public key on all machines</p>
<p>[root@myserver ~]# vi ssh-shutdown.sh<br /><span style="font-weight: bold; font-style: italic;">for (( $i=100 ; $i<=250 ; $i++ ))<br /></span><span style="font-weight: bold; font-style: italic;">do<br /></span><span style="font-weight: bold; font-style: italic;">ssh -X root@192.168.3.$i halt<br /></span><span style="font-weight: bold; font-style: italic;">done</span></p>
<p>(This program will shutdown the all network client system  from 100 to 250)</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2007/10/how-to-shutdown-all-linux-clients-from-server-in-your-network-lan/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>TELNET &#8211; Somthing Different (Contd)</title>
		<link>http://openpeta.com/index.php/2007/09/telnet-somthing-different-contd/</link>
		<comments>http://openpeta.com/index.php/2007/09/telnet-somthing-different-contd/#comments</comments>
		<pubDate>Wed, 26 Sep 2007 04:20:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Remote Login Protocols]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2007/09/26/telnet-somthing-different-contd/</guid>
		<description><![CDATA[1.Escape character is used for access telnet commands in remote machine , by default the escape character is &#8216;^&#8217; Example telnet&#62; set escap # escape character is &#8216;#&#8217;. (or) [root@myserver ~]# telnet -e &#8216;#&#8217; 192.168.3.138 Telnet escape character is &#8216;#&#8217;. Trying 192.168.3.138&#8230; Connected to 192.168.3.138 (192.168.3.138). Escape character is &#8216;#&#8217;. Red Hat Enterprise Linux WS [...]]]></description>
			<content:encoded><![CDATA[<p>1.Escape character is used for access telnet commands in remote machine , by default the escape character is &#8216;^&#8217;<br />
Example</p>
<blockquote><p>telnet&gt; set escap #<br />
escape character is &#8216;#&#8217;.<br />
(or)<br />
[root@myserver ~]# telnet -e &#8216;#&#8217; 192.168.3.138<br />
Telnet escape character is &#8216;#&#8217;.<br />
Trying 192.168.3.138&#8230;<br />
Connected to 192.168.3.138 (192.168.3.138).<br />
Escape character is &#8216;#&#8217;.<br />
Red Hat Enterprise Linux WS release 4 (Nahant)<br />
Kernel 2.6.9-5.ELsmp on an i686<br />
login: cam1<br />
Password:<br />
Last login: Wed Sep 26 09:02:18 from myserver<br />
[cam1@MB327SCS068 ~]$</p></blockquote>
<p>2. The opposite command of set is unset<br />
Example</p>
<blockquote><p>telnet&gt; unset escape<br />
escape character is &#8216;off&#8217;.</p></blockquote>
<p>2. Connecting remote host using open command<br />
Example </p>
<blockquote><p>telnet&gt; open 192.168.3.138<br />
Trying 192.168.3.138&#8230;<br />
Connected to 192.168.3.138 (192.168.3.138).<br />
Escape character is &#8216;off&#8217;.<br />
Red Hat Enterprise Linux WS release 4 (Nahant)<br />
Kernel 2.6.9-5.ELsmp on an i686<br />
login: cam1<br />
Password:<br />
Last login: Wed Sep 26 08:55:59 from myserver<br />
[cam1@MB327SCS068 ~]$</p></blockquote>
<p>3. In remote terminal we can execute the following commands</p>
<blockquote><p>a) encrpt<br />
b) close<br />
c) send<br />
d) logout<br />
e) quit<br />
f) status</p></blockquote>
<p>For executing telnet command in remote machine first logon the remote system using open command and then type telnet , give one space and press your escape character (here #) . don&#8217;t press enter key . when you press escape character after telnet,remote machine automatically enter into telnet mode . here you can execute the commands</p>
<p>Example</p>
<blockquote><p>[cam1@MB327SCS068 ~]$ telnet   (one space + #)<br />
telnet&gt;</p></blockquote>
<p>4. Printing telnet information &#8211; status  command</p>
<blockquote><p>[cam1@MB327SCS068 ~]$ telnet<br />
telnet&gt; status<br />
Connected to 192.168.3.138 (192.168.3.138).<br />
Operating in single character mode<br />
Catching signals locally<br />
Remote character echo<br />
Local flow control<br />
Escape character is &#8216;#&#8217;.</p></blockquote>
<p>5. Authentication using auth command</p>
<blockquote><p>a) for checking authentication<br />
[cam1@MB327SCS068 ~]$ telnet<br />
telnet&gt; auth status<br />
Authentication enabled<br />
KERBEROS_V5: enabled<br />
KERBEROS_V4: enabled</p></blockquote>
<p>b) We can enable and disable the authentication</p>
<blockquote><p>telnet&gt; auth enable ?<br />
auth enable &#8216;type&#8217;<br />
Where &#8216;type&#8217; is one of:<br />
NULL<br />
KERBEROS_V5<br />
KERBEROS_V4<br />
telnet&gt; auth disable ?<br />
auth disable &#8216;type&#8217;<br />
Where &#8216;type&#8217; is one of:<br />
NULL<br />
KERBEROS_V5<br />
KERBEROS_V4</p></blockquote>
<blockquote><p>Example<br />
telnet&gt; auth disable KERBEROS_V5<br />
telnet&gt; auth enable KERBEROS_V5</p></blockquote>
<p>6. send command</p>
<blockquote><p>telnet&gt; send ?<br />
ao              Send Telnet Abort output<br />
ayt             Send Telnet &#8216;Are You There&#8217;<br />
brk             Send Telnet Break<br />
ec              Send Telnet Erase Character<br />
el              Send Telnet Erase Line<br />
escape          Send current escape character<br />
ga              Send Telnet &#8216;Go Ahead&#8217; sequence<br />
ip              Send Telnet Interrupt Process<br />
nop             Send Telnet &#8216;No operation&#8217;<br />
eor             Send Telnet &#8216;End of Record&#8217;<br />
abort           Send Telnet &#8216;Abort Process&#8217;<br />
susp            Send Telnet &#8216;Suspend Process&#8217;<br />
eof             Send Telnet End of File Character<br />
synch           Perform Telnet &#8216;Synch operation&#8217;<br />
getstatus       Send request for STATUS<br />
?               Display send options</p></blockquote>
<p>Some Examples</p>
<blockquote><p>a) telnet&gt; send ayt</p>
<p>[MB327SCS068 : yes]</p>
<p>b) telnet&gt; send getstatus<br />
RCVD IAC SB STATUS IS<br />
WILL ECHO<br />
WILL SUPPRESS GO AHEAD<br />
WILL STATUS<br />
DO TERMINAL TYPE<br />
DO NAWS<br />
DO TSPEED<br />
DO LFLOW<br />
DO XDISPLOC<br />
DO NEW-ENVIRON<br />
SB TOGGLE-FLOW-CONTROL ON SE</p></blockquote>
<p>7. close / logout / quit commands</p>
<blockquote><p>a) [cam1@MB327SCS068 ~]$ telnet<br />
telnet&gt; quit<br />
Connection closed.<br />
b) [cam1@MB327SCS068 ~]$ telnet<br />
telnet&gt; close<br />
Connection closed.</p>
<p>c) [cam1@MB327SCS068 ~]$ telnet<br />
telnet&gt; logout<br />
Connection closed by foreign host.</p></blockquote>
<p>Still lot of operations are there in telnet . Some basic idea about telnet commands has only given here.</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2007/09/telnet-somthing-different-contd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TELNET &#8211; Somthing Different</title>
		<link>http://openpeta.com/index.php/2007/09/telnet-somthing-different/</link>
		<comments>http://openpeta.com/index.php/2007/09/telnet-somthing-different/#comments</comments>
		<pubDate>Wed, 26 Sep 2007 03:47:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Remote Login Protocols]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2007/09/26/telnet-somthing-different/</guid>
		<description><![CDATA[&#8220;telnet&#8221; command is the protocol which is used for login to remote machine and you can access the remote machine commands and files. Syntax telnet IP-Address Example : [root@myserver ~]# telnet 192.168.3.138 Trying 192.168.3.138&#8230; Connected to 192.168.3.138 (192.168.3.138). Escape character is &#8216;^]&#8217;. Red Hat Enterprise Linux WS release 4 (Nahant) Kernel 2.6.9-5.ELsmp on an i686 [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;telnet&#8221; command is the protocol which is used for login to remote machine and you can access the remote machine commands and files.</p>
<p>Syntax<br />  telnet IP-Address</p>
<p>Example :<br /> [root@myserver ~]# telnet 192.168.3.138<br />    Trying 192.168.3.138&#8230;<br />    Connected to 192.168.3.138 (192.168.3.138).<br />    Escape character is &#8216;^]&#8217;.<br />    Red Hat Enterprise Linux WS release 4 (Nahant)<br />    Kernel 2.6.9-5.ELsmp on an i686<br />    login: cam1<br />    Password:<br />    Last login: Tue Sep 25 13:05:58 on :0<br />[cam1@MB327SCS068 ~]$</p>
<p>This is the normal thing , everyday we are using this command in our lab or offices . but we can do lot of extra things with telnet using telnet sub commands</p>
<p>[root@myserver ~]# telnet<br />telnet> help<br />Commands may be abbreviated.  Commands are:</p>
<p>close      ->     close current connection<br />logout   ->       forcibly logout remote user and close the connection<br />display     ->    display operating parameters<br />mode       ->     try to enter line or character mode (&#8216;mode ?&#8217; for more)<br />open         ->   connect to a site<br />quit           -> exit telnet<br />send           -> transmit special characters (&#8216;send ?&#8217; for more)<br />set             ->set operating parameters (&#8216;set ?&#8217; for more)<br />unset           ->unset operating parameters (&#8216;unset ?&#8217; for more)<br />status          ->print status information<br />toggle          ->toggle operating parameters (&#8216;toggle ?&#8217; for more)<br />slc             ->change state of special characters (&#8216;slc ?&#8217; for more)<br />auth            ->turn on (off) authentication (&#8216;auth ?&#8217; for more)<br />encrypt         ->turn on (off) encryption (&#8216;encrypt ?&#8217; for more)<br />forward         ->turn on (off) credential forwarding (&#8216;forward ?&#8217; for more)<br />z               ->suspend telnet<br />!               ->invoke a sub shell<br />environ       ->  change environment variables (&#8216;environ ?&#8217; for more)<br />?               ->print help information<br />telnet></p>
<p>These are all commands available in telnet protocol . next article let&#8217;s see briefly about those commands</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2007/09/telnet-somthing-different/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
