Tuesday, February 28, 2017

How to solve “agent admitted failure to sign using the key” error ?

Workaround

SSH_AUTH_SOCK=0
 
 
Permenant 

ssh-add

SSH

Passwordless login 

Your aim

You want to use Linux and OpenSSH to automate your tasks. Therefore you need an automatic login from host A / user a to Host B / user b. You don't want to enter any passwords, because you want to call ssh from a within a shell script.

How to do it

First log in on A as user a and generate a pair of authentication keys. Do not enter a passphrase:
a@A:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa): 
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/a/.ssh/id_rsa.
Your public key has been saved in /home/a/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 a@A
 
Now use ssh to create a directory ~/.ssh as user b on B. (The directory may already exist, which is fine):
a@A:~> ssh b@B mkdir -p .ssh
b@B's password: 
 
Finally append a's new public key to b@B:.ssh/authorized_keys and enter b's password one last time:
a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
b@B's password: 
 
From now on you can log into B as b from A as a without password:
a@A:~> ssh b@B

Reference

http://www.linuxproblem.org/art_9.html

Wednesday, September 10, 2014

இது நான்தான

எல்லோருக்கும் என் காலை வணக்கம்


Friday, May 29, 2009

How install mysql and java

Extarct zib file

chmod 755 jdk-6u2-linux-i586-rpm.bin


./jdk-6u2-linux-i586-rpm.bin


java -version


alternatives --config java


==================================


test dependency
--------------------
rpm -qa |grep -i mysql

rpm -ivh --test MySQL-client-enterprise-gpl-5.0.70-0.rhel5.i386.rpm MySQL-devel-enterprise-gpl-5.0.70-0.rhel5.i386.rpm MySQL-enterprise-gpl-debuginfo-5.0.70-0.rhel5.i386.rpm MySQL-server-enterprise-gpl-5.0.70-0.rhel5.i386.rpm MySQL-shared-enterprise-gpl-5.0.70-0.rhel5.i386.rpm MySQL-test-enterprise-gpl-5.0.70-0.rhel5.i386.rpm


install mysql
----------------

rpm -ivh MySQL-client-enterprise-gpl-5.0.70-0.rhel5.i386.rpm MySQL-devel-enterprise-gpl-5.0.70-0.rhel5.i386.rpm MySQL-enterprise-gpl-debuginfo-5.0.70-0.rhel5.i386.rpm MySQL-server-enterprise-gpl-5.0.70-0.rhel5.i386.rpm MySQL-shared-enterprise-gpl-5.0.70-0.rhel5.i386.rpm MySQL-test-enterprise-gpl-5.0.70-0.rhel5.i386.rpm


rpm -ev --nodeps mysql-libs-5.0.67-2.fc10.x86_64

perl-dbi
=-=====



chown -R mysql:mysql mysql4001/


rpm url
----------
http://rpm.pbone.net/index.php3/stat/4/idpl/8874486/com/perl-DBI-1.607-1.fc9.i386.rpm.html

download.fedora.redhat.com/pub/fedora/linux/releases/10/Fedora/x86_64/os/Packages/gtk2-2.14.4-3.fc10.x86_64.rpm

http://ftp.iitm.ac.in/fedora/releases/10/Everything/x86_64/os/Packages/fedora-usermgmt-default-fedora-setup-0.10-2.fc10.noarch.rpm

Friday, May 22, 2009

rar install

http://www.cyberciti.biz/faq/open-rar-file-or-extract-rar-files-under-linux-or-unix/

Tuesday, December 30, 2008

cvs

To do the checkout process in windows:
Before start checking out in windows system,the directory must be configured in the cvs by the cvs admin.

The file must be marked as binary in the cvs

To mark a file as binary:

cvs admin -kb name_of_binary_file

Tuesday, December 16, 2008

some changes in tomcat

[cit146@cit146 bin]$ export JAVA_HOME=/usr/java/jdk1.6.0_03/

[cit146@cit146 bin]$ export CATALINA_HOME=/home/cit146/software/apache-tomcat-5.5.20/

export CLASSPATH=/home/cit146/software/apache-tomcat-5.5.20/common/lib/servlet-api.jar

[cit146@cit146 bin]$ ./startup.sh
Using CATALINA_BASE: /home/cit146/software/apache-tomcat-5.5.20/
Using CATALINA_HOME: /home/cit146/software/apache-tomcat-5.5.20/
Using CATALINA_TMPDIR: /home/cit146/software/apache-tomcat-5.5.20//temp
Using JRE_HOME: /usr/java/jdk1.6.0_03/
[cit146@cit146 bin]$



paste yumemetl.war from home/cit146/dist to /home/cit146/software/apache-tomcat-5.5.20/webapps

paste yumeetl.xml in /home/cit146/software/apache-tomcat-5.5.20/conf/Catalina/localhost


edit server.xml in /home/cit146/software/apache-tomcat-5.5.20/conf [url values]


paste mysql.jar in /home/cit146/software/apache-tomcat-5.5.20/common/lib


edit log4jconfiguratio.xml and quartz.properties /home/cit146/software/apache-tomcat-5.5.20/webapps/yumeetl/WEB-INF/classes
[ * change param value="[%d] [%t] %-5p %c %X{processid} - %m%n"
* (if u want show the output) ]

insert export CATALINA_OPTS="-Dlog4j.configuration=log4jconfiguration.xml" in catalina.sh (before # Get standard environment variables PRGDIR=`dirname "$PRG"`)



Firing process
----------------------


First truncate the following table

delete from QRTZ_CRON_TRIGGERS where TRIGGER_NAME='com.yumecorp.etl.martcleanup_process';
delete from QRTZ_TRIGGERS where TRIGGER_NAME ='com.yumecorp.etl.martcleanup_process';
delete from QRTZ_JOB_DETAILS where JOB_NAME='com.yumecorp.etl.martcleanup_process';

insert into quartz_job_details,quartz_cron_triggers, qyartz_triggers

for eg,

INSERT INTO QRTZ_JOB_DETAILS (JOB_NAME, JOB_GROUP, DESCRIPTION, JOB_CLASS_NAME, IS_DURABLE, IS_VOLATILE, IS_STATEFUL, REQUESTS_RECOVERY, JOB_DATA) VALUES
('com.yumecorp.etl.martcleanup_process', 'com.yumecorp.etl', NULL, 'com.yumecorp.etl.ETLProcessJob', 0, 0, 0, 0, 'jndiName=java:comp/env/jdbc/yume\nmartjndi=yumemart\nportaldb=qadb\nfilePath=martcleanup_etlprocess.xml');

INSERT INTO QRTZ_TRIGGERS (TRIGGER_NAME, TRIGGER_GROUP, JOB_NAME, JOB_GROUP, IS_VOLATILE, DESCRIPTION, NEXT_FIRE_TIME, PREV_FIRE_TIME, TRIGGER_STATE, TRIGGER_TYPE, START_TIME, END_TIME, CALENDAR_NAME, MISFIRE_INSTR, JOB_DATA) VALUES
('com.yumecorp.etl.martcleanup_process', 'com.yumecorp.etl', 'com.yumecorp.etl.martcleanup_process', 'com.yumecorp.etl', 0, NULL, -1, -1, "WAITING", "CRON", -1, 0, NULL, 0, NULL);

INSERT INTO QRTZ_CRON_TRIGGERS(TRIGGER_NAME, TRIGGER_GROUP, CRON_EXPRESSION,TIME_ZONE_ID) VALUES
('com.yumecorp.etl.martcleanup_process', 'com.yumecorp.etl', '0 15,45 * * * ?', NULL);

Mis Fire
-------------

update QRTZ_TRIGGERS set NEXT_FIRE_TIME=-1 where TRIGGER_NAME='com.yumecorp.etl.martcleanup_process';


show the output in
/home/cit146/software/apache-tomcat-5.5.20/bin/yumeappserver.log