<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1463716759590544154</id><updated>2012-02-16T16:42:18.746-08:00</updated><category term='linux'/><category term='tail'/><category term='password less ssh'/><category term='failover'/><category term='ntp'/><category term='less'/><category term='heartbeat'/><category term='Juniper Firewall SSG5'/><category term='time'/><category term='log'/><title type='text'>My thirsty for knowledge</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linux-updates.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://linux-updates.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anoop</name><uri>http://www.blogger.com/profile/10880665455055473330</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://2.bp.blogspot.com/-2b9R5WFEeww/TvwGTq81X3I/AAAAAAAAADc/VUGrh6qEkmE/s220/Anoop%2B-%2BCopy.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1463716759590544154.post-3822999881157762466</id><published>2009-09-24T03:02:00.000-07:00</published><updated>2009-09-24T03:31:52.754-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ntp'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='time'/><title type='text'>Configuring NTP Client on Red Hat Linux</title><content type='html'>To keep the server time accurate, we must have to synchronize with any of the available time server  in local or internet, here I am describing the steps to synchronize time with locally configured NTP server in the network.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Open the ntp.conf file in any of the text editor (VI, nano etc)&lt;br /&gt;&lt;br /&gt;vi /etc/ntp.conf     ( add local NTP server ip address)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;server 192.168.X.X # local clock&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;vi /etc/ntp/step-tickers (add your ntp server ip address)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;192.168.X.X&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;service ntpd start &lt;br /&gt;&lt;br /&gt;chkconfig --level 2345 ntpd on&lt;br /&gt;&lt;br /&gt;What if, time to be updated only once, use this command, ntp service must be stopped before running this command.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;ntpdate 192.168.X.X&lt;/span&gt; (IP address of NTP server)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1463716759590544154-3822999881157762466?l=linux-updates.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-updates.blogspot.com/feeds/3822999881157762466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-updates.blogspot.com/2009/09/configuring-ntp-client-on-red-hat-linux.html#comment-form' title='32 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/3822999881157762466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/3822999881157762466'/><link rel='alternate' type='text/html' href='http://linux-updates.blogspot.com/2009/09/configuring-ntp-client-on-red-hat-linux.html' title='Configuring NTP Client on Red Hat Linux'/><author><name>Anoop</name><uri>http://www.blogger.com/profile/10880665455055473330</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://2.bp.blogspot.com/-2b9R5WFEeww/TvwGTq81X3I/AAAAAAAAADc/VUGrh6qEkmE/s220/Anoop%2B-%2BCopy.jpg'/></author><thr:total>32</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1463716759590544154.post-4708740501103595968</id><published>2009-07-23T02:25:00.001-07:00</published><updated>2009-07-23T02:47:06.182-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='log'/><category scheme='http://www.blogger.com/atom/ns#' term='tail'/><category scheme='http://www.blogger.com/atom/ns#' term='less'/><title type='text'>tail -f vs less +F</title><content type='html'>When I was fist seen this command, I was thinking ohhhh  god why I haven't seen this command long time back, this could have make my life much more easier.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;tail -f /var/log/messages&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The main advantages of tail -f is that, you can monitor logs real time it will keep on appending logs as it goes, but what if I have found one error and want to look back what went wrong, I have to quit the tail and open the file in VI or with less. &lt;br /&gt;&lt;br /&gt;There comes the advantage of less +F, you can monitor logs real time it will keep on appending logs as it goes, and if I found error I can execute &lt;span style="font-weight:bold;"&gt;ctrl+c&lt;/span&gt; to stop appending real time log and can go back and check what went wrong, once I verified and can again start appending log by executing &lt;span style="font-weight:bold;"&gt;capital F&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;less +F /var/log/messages&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This does the same thing as tail -f but it will also show the entire file, just press &lt;span style="font-weight:bold;"&gt;ctrl + c&lt;/span&gt; to navigate around the log file. When you want to view the log in real time again just type a &lt;span style="font-weight:bold;"&gt;capital F&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1463716759590544154-4708740501103595968?l=linux-updates.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-updates.blogspot.com/feeds/4708740501103595968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-updates.blogspot.com/2009/07/tail-f-vs-less-f.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/4708740501103595968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/4708740501103595968'/><link rel='alternate' type='text/html' href='http://linux-updates.blogspot.com/2009/07/tail-f-vs-less-f.html' title='tail -f vs less +F'/><author><name>Anoop</name><uri>http://www.blogger.com/profile/10880665455055473330</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://2.bp.blogspot.com/-2b9R5WFEeww/TvwGTq81X3I/AAAAAAAAADc/VUGrh6qEkmE/s220/Anoop%2B-%2BCopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1463716759590544154.post-1189307369422863033</id><published>2009-06-04T04:54:00.000-07:00</published><updated>2010-02-14T21:11:05.542-08:00</updated><title type='text'>Configuring iSCSI initiator on Red Hat Linux 4 and 5</title><content type='html'>I was configuring iSCSI initiator in one of our Red Hat Linux 4 server, couple of weeks ago, after a day's work at last I became successful. Ohhh thank GOD. Last week again I have asked to configure iSCSI on Red Hat Linux 5 server I was cool, I already did this on RHEL 4, but after installing the package on RHEL 5 and looking at configuration file takes my breath away, a completely new configuration file not even able to compare with RHEL4. Ohhhh GOD help me. Again after a days work I was successful sharing my work with you guys it may helpful to you.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Configuring iSCSI initiator in Red Hat Enterprise Server 4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;iSCSI (Internet Small Computer System Interface)&lt;br /&gt;&lt;br /&gt;Concepts&lt;br /&gt;&lt;br /&gt;Initiator&lt;br /&gt;&lt;br /&gt;An initiator functions as an iSCSI client. An initiator typically serves the same purpose to a computer as a SCSI bus adapter would, except that instead of physically cabling SCSI devices (like hard drives and tape changers), an iSCSI initiator sends SCSI commands over an IP network. An initiator falls into two broad types:&lt;br /&gt;&lt;br /&gt;Software initiator&lt;br /&gt;&lt;br /&gt;A software initiator uses code to implement iSCSI. Typically, this happens in a kernel-resident device driver that uses the existing network card (NIC) and network stack to emulate SCSI devices for a computer by speaking the iSCSI protocol. Software initiators are available for most mainstream operating systems, and this type is the most common mode of deploying iSCSI on computers.&lt;br /&gt;&lt;br /&gt;Hardware initiator&lt;br /&gt;&lt;br /&gt;A hardware initiator uses dedicated hardware, typically in combination with software (firmware) running on that hardware, to implement iSCSI. A hardware initiator mitigates the overhead of iSCSI and TCP processing and Ethernet interrupts, and therefore may improve the performance of servers that use iSCSI.&lt;br /&gt;&lt;br /&gt;Target&lt;br /&gt;&lt;br /&gt;iSCSI refers to a storage resource located on an iSCSI server (more generally, one of potentially many instances of iSCSI running on that server) as a "target". An iSCSI target usually represents hard disk storage. As with initiators, software to provide an iSCSI target is available for most mainstream operating systems.&lt;br /&gt;Common deployment scenarios for an iSCSI target include:&lt;br /&gt;&lt;br /&gt;Storage array&lt;br /&gt;&lt;br /&gt;In a data center or enterprise environment, an iSCSI target often resides in a large storage array, such as a NetApp filer or an EMC Corporation NS-series computer appliance. A storage array usually provides distinct iSCSI targets for numerous clients.[1]&lt;br /&gt;&lt;br /&gt;Software target&lt;br /&gt;&lt;br /&gt;In a smaller or more specialized setting, mainstream server operating systems (like Linux, Solaris or Windows Server 2008) and some specific-purpose operating systems (like NexentaStor, StarWind iSCSI Target, FreeNAS, iStorage Server, OpenFiler or FreeSiOS) can provide iSCSI target's functionality.&lt;br /&gt;&lt;br /&gt;Addressing&lt;br /&gt;&lt;br /&gt;Special names refer to both iSCSI initiators and targets. iSCSI provides three name-formats:&lt;br /&gt;&lt;br /&gt;iSCSI Qualified Name (IQN)&lt;br /&gt;Format: iqn.yyyy-mm.{reversed domain name} (e.g. iqn.2001-04.com.acme:storage.tape.sys1.xyz) (Note: there is an optional colon with arbitrary text afterwards. This text is there to help better organize or label resources.)&lt;br /&gt;&lt;br /&gt;Extended Unique Identifier (EUI)&lt;br /&gt;&lt;br /&gt;Format: eui.{EUI-64 bit address} (e.g. eui.02004567A425678D)&lt;br /&gt;T11 Network Address Authority (NAA)&lt;br /&gt;Format: naa.{NAA 64 or 128 bit identifier} (e.g. naa.52004567BA64678D)&lt;br /&gt;IQN format addresses occur most commonly. They are qualified by a date (yyyy-mm) because domain names can expire or be acquired by another entity.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installation on  Red Hat Linux 4&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# rpm -ivh iscsi-initiator-utils-4.0.3.0-7.i386.rpm&lt;br /&gt;&lt;br /&gt;IQN no of Red Hat Linux 4 Server (/etc/initiatorname.iscsi file)&lt;br /&gt;&lt;br /&gt;Each iSCSI device on the network, be it initiator or target, has a unique iSCSI node name. Red Hat uses the iSCSI Qualified Name (IQN) format with the initiator that ships with Red Hat Enterprise Linux. In the IQN format, a node name consists of a predefined section, chosen based on the initiator manufacturer, and a unique device name section which is editable by the administrator.&lt;br /&gt;Provide this IQN number to your IPSAN Administrator he will create and assign LUN to this IQN&lt;br /&gt;&lt;br /&gt;Important&lt;br /&gt;&lt;br /&gt;In any case, if the iqn number (iqn number will look like this iqn.1987-05.com.cisco:01.f9dbc6d6567) is not displayed in /etc/initiatorname.iscsi , you can generate the iqn number using &lt;span style="font-weight: bold;"&gt;iscsi-iname&lt;/span&gt; command and paste it on the /etc/initiatorname.iscsi&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Configuration  ( /etc/iscsi.conf)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Terms&lt;br /&gt;&lt;br /&gt;To globally configure a CHAP username and password for initiator&lt;br /&gt;authentication by the target(s), uncomment the following lines:&lt;br /&gt;&lt;br /&gt;Outgoingusername is something we create at Target to authenticate the LUN assigned to this&lt;br /&gt;&lt;br /&gt;OutgoingUsername=&lt;text&gt;&lt;br /&gt;OutgoingPassword=&lt;text&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To globally configure a CHAP username and password for target(s)&lt;br /&gt;authentication by the initiator, uncomment the following lines:&lt;br /&gt;&lt;br /&gt;IncomingUsername=&lt;text&gt;&lt;br /&gt;IncomingPassword=&lt;text&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Settings in config file ( /etc/iscsi.conf)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;DiscoveryAddress=ipaddress or hostname of your IPSAN&lt;br /&gt;OutgoingUsername=username created in targetserver for accssing this LUN&lt;br /&gt;OutgoingPassword= password created in targetserver for accssing this LUN&lt;br /&gt;LoginTimeout=15&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installation on  Red Hat Linux 5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# rpm -ivh iscsi-initiator-utils-6.2.0.868-0.18.el5.i386.rpm&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;IQN no of Red Hat Linux 5 Server (/etc/iscsi/initiatorname.iscsi)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/text&gt;&lt;/text&gt;&lt;/text&gt;&lt;/text&gt;Important&lt;br /&gt;&lt;br /&gt;In any case, if the iqn number (iqn number will look like this iqn.1987-05.com.cisco:01.f9dbc6d6567) is not displayed in /etc/iscsi/initiatorname.iscsi , you can generate the iqn number using &lt;span style="font-weight: bold;"&gt;iscsi-iname&lt;/span&gt; command and paste it on the /etc/iscsi/initiatorname.iscsi&lt;br /&gt;&lt;br /&gt;&lt;text&gt;&lt;text&gt;&lt;text&gt;&lt;text&gt;&lt;span style="font-weight: bold;"&gt;Configuration  ( /etc/iscsi/iscsid.conf)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Settings &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;# To enable CHAP authentication set node.session.auth.authmethod&lt;br /&gt;# to CHAP. The default is None.&lt;br /&gt;node.session.auth.authmethod = CHAP&lt;br /&gt;&lt;br /&gt;# To set a CHAP username and password for initiator&lt;br /&gt;# authentication by the target(s), uncomment the following lines:&lt;br /&gt;node.session.auth.username = testuser           &lt;br /&gt;node.session.auth.password = testpassword&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# To enable CHAP authentication for a discovery session to the target&lt;br /&gt;# set discovery.sendtargets.auth.authmethod to CHAP. The default is None.&lt;br /&gt;discovery.sendtargets.auth.authmethod = CHAP&lt;br /&gt;&lt;br /&gt;# To set a discovery session CHAP username and password for the initiator&lt;br /&gt;# authentication by the target(s), uncomment the following lines:&lt;br /&gt;discovery.sendtargets.auth.username = testuser&lt;br /&gt;discovery.sendtargets.auth.password = testpassword&lt;br /&gt;&lt;br /&gt;#service iscsi restart&lt;br /&gt;&lt;br /&gt;Will get the output like this&lt;br /&gt;&lt;br /&gt;Stopping iSCSI daemon:&lt;br /&gt;iscsid dead but pid file exists            [  OK  ]&lt;br /&gt;Turning off network shutdown. Starting iSCSI daemon:       [  OK  ]&lt;br /&gt;                                                         [  OK  ]&lt;br /&gt;Setting up iSCSI targets: iscsiadm: No records found!&lt;br /&gt;                                                         [  OK  ]&lt;br /&gt;&lt;br /&gt;Now discover the targets.&lt;br /&gt;&lt;br /&gt;#iscsiadm -m discovery -t sendtargets -p 192.168.x.x ( IP address of Target)&lt;br /&gt;&lt;br /&gt;# service iscsi restart&lt;br /&gt;&lt;br /&gt;Will get like this&lt;br /&gt;Logging out of session [sid: 1, target: iqn.1991-05.com.microsoft:aio1200-oracle-rac-target, portal: 192.168.x.x,3260]&lt;br /&gt;Logout of [sid: 1, target: iqn.1991-05.com.microsoft:aio1200-oracle-rac-target, portal: 192.168.x.x,3260]: successful&lt;br /&gt;Stopping iSCSI daemon:&lt;br /&gt;iscsid dead but pid file exists                            [  OK  ]&lt;br /&gt;Turning off network shutdown. Starting iSCSI daemon:       [  OK  ]&lt;br /&gt;                                                         [  OK  ]&lt;br /&gt;Setting up iSCSI targets: Logging in to [iface: default, target: iqn.1991-05.com.microsoft:aio1200-oracle-rac-target, portal: 192.168.251.10,3260]&lt;br /&gt;Logging in to [iface: default, target: iqn.1991-05.com.microsoft:aio1200-oracle-rac-target, portal: 192.168.x.x,3260]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Important.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you made any changes to the configuration file first remove the iqn from cache using this command&lt;br /&gt;&lt;br /&gt;#iscsiadm -m node -T iqn.1991-05.com.microsoft:aio1200-oracle-rac-target -o delete&lt;br /&gt;&lt;br /&gt;After issuing this command restart the iscsi to take effect the configuration you changed&lt;br /&gt;&lt;br /&gt;#Service iscsi restart&lt;br /&gt;&lt;br /&gt;After restarting the service discover again using&lt;br /&gt;&lt;br /&gt;#iscsiadm -m discovery -t sendtargets -p 192.168.x.x (IP address of Target)&lt;/text&gt;&lt;/text&gt;&lt;/text&gt;&lt;/text&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1463716759590544154-1189307369422863033?l=linux-updates.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-updates.blogspot.com/feeds/1189307369422863033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-updates.blogspot.com/2009/06/configuring-iscsi-on-red-hat-linux-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/1189307369422863033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/1189307369422863033'/><link rel='alternate' type='text/html' href='http://linux-updates.blogspot.com/2009/06/configuring-iscsi-on-red-hat-linux-4.html' title='Configuring iSCSI initiator on Red Hat Linux 4 and 5'/><author><name>Anoop</name><uri>http://www.blogger.com/profile/10880665455055473330</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://2.bp.blogspot.com/-2b9R5WFEeww/TvwGTq81X3I/AAAAAAAAADc/VUGrh6qEkmE/s220/Anoop%2B-%2BCopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1463716759590544154.post-2438409016736194014</id><published>2009-05-06T22:49:00.000-07:00</published><updated>2010-02-05T20:17:27.202-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='password less ssh'/><title type='text'>SSH to server without password using RSA key</title><content type='html'>I came across a requirement for automatically logging into the server without entering password, This can done using the RSA&lt;br /&gt;&lt;br /&gt;Simple Way (Better to try this)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Client&lt;/span&gt; (from where you want to access the server)&lt;br /&gt;&lt;br /&gt;1.Run the following command on the client (from where you want to access the  &lt;br /&gt;  server) &lt;br /&gt;        #ssh-keygen -t rsa&lt;br /&gt;&lt;br /&gt;2.id_rsa and id_rsa.pub files will be created inside $HOME/.ssh&lt;br /&gt;&lt;br /&gt;3.Copy id_rsa.pub to the server's .ssh directory (Create folder $HOME/.ssh in server if dosen't exist)&lt;br /&gt;&lt;br /&gt; #scp $HOME/.ssh/id_rsa.pub user@server:/home/user/.ssh&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4.Change to /home/user/.ssh and create file authorized_keys containing id_rsa.pub content&lt;br /&gt; #cd /home/user/.ssh&lt;br /&gt; #cat id_rsa.pub &gt;&gt; authorized_keys&lt;br /&gt;&lt;br /&gt;5.Change the authorized_keys permission to 644 (rw-r--r--)&lt;br /&gt; #chmod 644 authorized_keys&lt;br /&gt;&lt;br /&gt;6.Enable rsa authentication in /etc/ssh/sshd_config in both the machines (server and client)&lt;br /&gt;        RSAAuthentication yes&lt;br /&gt;        PubkeyAuthentication yes&lt;br /&gt;        AuthorizedKeysFile      .ssh/authorized_keys&lt;br /&gt;&lt;br /&gt;7.Restart sshd service ( service sshd restart)&lt;br /&gt;&lt;br /&gt;8.You can try ssh to the server from the client and no password will be needed&lt;br /&gt; #ssh user@server&lt;br /&gt;&lt;br /&gt;A much more complex way&lt;br /&gt;&lt;br /&gt;In the server where you want to give access&lt;br /&gt;#ssh-keygen –t rsa &lt;br /&gt;&lt;br /&gt;Give password &lt;br /&gt;&lt;br /&gt;This will create two files Private key and public key in $HOME/.ssh/id_rsa.pub and $HOME/.ssh/id_rsa&lt;br /&gt;&lt;br /&gt;#scp /root/.ssh/id_rsa.pub test@192.168.*.*:/home/test/.ssh/&lt;br /&gt;# scp /root/.ssh/id_rsa test@192.168.*.*:/home/test/.ssh/&lt;br /&gt;#exec ssh-agent bash&lt;br /&gt;#ssh-add /root/.ssh/id_rsa&lt;br /&gt;&lt;br /&gt;Remote Side&lt;br /&gt;&lt;br /&gt;Create a user&lt;br /&gt;#Useradd test&lt;br /&gt;#Passwd test&lt;br /&gt;#su – test&lt;br /&gt;&lt;br /&gt;$mkdir /home/test/.ssh&lt;br /&gt;$chmod 700 .ssh&lt;br /&gt;$cat /home/test/.ssh/id_rsa &gt;&gt; /home/test/.ssh/ authorized_keys  (if ssh2  then use authorized_keys2)&lt;br /&gt;&lt;br /&gt;$ exec ssh-agent bash&lt;br /&gt;$ssh-add /root/.ssh/id_rsa&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1463716759590544154-2438409016736194014?l=linux-updates.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-updates.blogspot.com/feeds/2438409016736194014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-updates.blogspot.com/2009/05/ssh-to-server-without-password-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/2438409016736194014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/2438409016736194014'/><link rel='alternate' type='text/html' href='http://linux-updates.blogspot.com/2009/05/ssh-to-server-without-password-using.html' title='SSH to server without password using RSA key'/><author><name>Anoop</name><uri>http://www.blogger.com/profile/10880665455055473330</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://2.bp.blogspot.com/-2b9R5WFEeww/TvwGTq81X3I/AAAAAAAAADc/VUGrh6qEkmE/s220/Anoop%2B-%2BCopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1463716759590544154.post-246446727601816694</id><published>2009-05-06T22:33:00.000-07:00</published><updated>2009-05-06T22:47:08.411-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Juniper Firewall SSG5'/><title type='text'>Allowing New port in Juniper Firewall SSG5</title><content type='html'>I was digging for allowing a new port in Juniper SSG5 firewall, an entry level firewall which used for internet connection, after long R&amp;D i was able to do that, and planning to share it with you &lt;br /&gt;A step by step approach for more clarity &lt;br /&gt;&lt;br /&gt;1.Internet explorer take http://192.168.x.x or https://192.168.x.x  Userid: netscreen&lt;br /&gt;and password&lt;br /&gt;&lt;br /&gt;Step - I&lt;br /&gt;&lt;br /&gt;Creating a port &lt;br /&gt;&lt;br /&gt;1.Policy -&gt;Policy elements -&gt;Services -&gt; Custom -&gt;  Click on New&lt;br /&gt;      a.Give service name  abc(for which purpose you are opening port give&lt;br /&gt;        description of that ex- if you are opening port 1111 for abc give service &lt;br /&gt;        name abc)&lt;br /&gt;      b.Select Transport protocol -&gt; TCP&lt;br /&gt;      c.Source port  -&gt; Low =0 High -&gt; 65535 (default)&lt;br /&gt;      d.Destination port -&gt; Low= 1111(the port you want to open ex-1111) &lt;br /&gt;        High=1111(the port you want to open ex-1111)  low and high should be same&lt;br /&gt;&lt;br /&gt;Step - II&lt;br /&gt;Assigning new port to group&lt;br /&gt;&lt;br /&gt;1.Policy -&gt; Policy elements -&gt; Services -&gt; Group -&gt; edit  group1&lt;br /&gt;     a. Select the service name you have given from left side and add them&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1463716759590544154-246446727601816694?l=linux-updates.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-updates.blogspot.com/feeds/246446727601816694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-updates.blogspot.com/2009/05/allowing-new-port-in-ssg5.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/246446727601816694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/246446727601816694'/><link rel='alternate' type='text/html' href='http://linux-updates.blogspot.com/2009/05/allowing-new-port-in-ssg5.html' title='Allowing New port in Juniper Firewall SSG5'/><author><name>Anoop</name><uri>http://www.blogger.com/profile/10880665455055473330</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://2.bp.blogspot.com/-2b9R5WFEeww/TvwGTq81X3I/AAAAAAAAADc/VUGrh6qEkmE/s220/Anoop%2B-%2BCopy.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1463716759590544154.post-3133631365182820026</id><published>2009-05-06T21:24:00.000-07:00</published><updated>2009-05-06T21:28:09.141-07:00</updated><title type='text'>Red Hat Enterprise 5 Hardening</title><content type='html'>Want to harden your Red Hat production server ????????????&lt;br /&gt;&lt;br /&gt;Try this&lt;br /&gt;&lt;br /&gt;www.redhat.com/promo/summit/2008/downloads/pdf/hardening-rhel5.pdf&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1463716759590544154-3133631365182820026?l=linux-updates.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-updates.blogspot.com/feeds/3133631365182820026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-updates.blogspot.com/2009/05/red-hat-enterprise-5-hardening.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/3133631365182820026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/3133631365182820026'/><link rel='alternate' type='text/html' href='http://linux-updates.blogspot.com/2009/05/red-hat-enterprise-5-hardening.html' title='Red Hat Enterprise 5 Hardening'/><author><name>Anoop</name><uri>http://www.blogger.com/profile/10880665455055473330</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://2.bp.blogspot.com/-2b9R5WFEeww/TvwGTq81X3I/AAAAAAAAADc/VUGrh6qEkmE/s220/Anoop%2B-%2BCopy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1463716759590544154.post-1447595707983139403</id><published>2009-05-05T23:38:00.000-07:00</published><updated>2009-05-05T23:44:21.820-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='failover'/><category scheme='http://www.blogger.com/atom/ns#' term='heartbeat'/><title type='text'>Fail over using heartbeat</title><content type='html'>&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 11"&gt;&lt;meta name="Originator" content="Microsoft Word 11"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Canoopp%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" latentstylecount="156"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} &lt;/style&gt; &lt;![endif]--&gt;&lt;span style=";font-family:&amp;quot;;font-size:12;"  &gt;You can configure any server DNS,DHCP,FTP etc for automatic fail over using heartbeat component, This is one of the great tool i have came across. Read the success stores here http://www.linux-ha.org/SuccessStories. download heartbeat http://www.linux-ha.org/ from here and start using&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1463716759590544154-1447595707983139403?l=linux-updates.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-updates.blogspot.com/feeds/1447595707983139403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-updates.blogspot.com/2009/05/fail-over-using-heartbeat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/1447595707983139403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1463716759590544154/posts/default/1447595707983139403'/><link rel='alternate' type='text/html' href='http://linux-updates.blogspot.com/2009/05/fail-over-using-heartbeat.html' title='Fail over using heartbeat'/><author><name>Anoop</name><uri>http://www.blogger.com/profile/10880665455055473330</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://2.bp.blogspot.com/-2b9R5WFEeww/TvwGTq81X3I/AAAAAAAAADc/VUGrh6qEkmE/s220/Anoop%2B-%2BCopy.jpg'/></author><thr:total>0</thr:total></entry></feed>
