check DSA keys


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting check DSA keys
# 1  
Old 06-09-2010
check DSA keys

hi!

i have a scenario where the dsa key's might be tampered in the remote host.
My shell script is doing something like this

Code:
/bin/ssh -v -i /home/erp/.ssh/dsa ref@host ls /home/test/auto.log

it is working fine .but the problem is that it returns an exit code of 1 both for the absence of the file and if the dsa keys is tampered.

i am doing an scp similar way. it also seems to have a similar issue.im using ksh.

please suggest

Moderator's Comments:
Mod Comment Use code tags please, ty.

Last edited by zaxxon; 06-10-2010 at 06:16 AM.. Reason: code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Ssh between servers - No DSA host key is known

It seems I can do ssh <IP> but not ssh <hostname> If I try to ssh to hostname I get the error - No DSA host key is known for host1 and you have requested strict checking. Host key verification failed. Where do I set up the DSA keys? Is it ssh_known_hosts? Assume afterwards I can... (3 Replies)
Discussion started by: psychocandy
3 Replies

2. UNIX and Linux Applications

SFTP Passing without DSA Key check

Hi, I am trying to connect through SFTP. Though the DSA 2048 public key is installed in the server machine, the connection is established only with password authentication! When i turn off password authentication in sshd_config file the connection is not working. Please advise, Best... (0 Replies)
Discussion started by: Maharajan
0 Replies

3. UNIX for Dummies Questions & Answers

SFTP Passing without DSA Key check

Hi, I am trying to connect through SFTP. Though the DSA 2048 public key is installed in the server machine, the connection is established only with password authentication! When i turn off password authentication in sshd_config file the connection is not working. Please advise, Best... (0 Replies)
Discussion started by: Maharajan
0 Replies

4. Shell Programming and Scripting

dsa keys - different pub file

Hi I wish to set up sftp between server1 and server2. File needs to be moved from server1 to server2. I have logged into server1 with my credentials and cd to .ssh using ssh-keygen -t dsa , i have generated the keys and stores in id_dsa.pub and id_dsa file. Later i have moved the contents of... (3 Replies)
Discussion started by: forums123456
3 Replies

5. Red Hat

Header V3 DSA signature:

# rpm -ivh telnet-server-0.17-38.el5.i386.rpm warning: telnet-server-0.17-38.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 error: Failed dependencies: xinetd is needed by telnet-server-0.17-38.el5.i386 # ----------------------------------------------- # yum -y... (2 Replies)
Discussion started by: dplinux
2 Replies

6. Solaris

problem when generating dsa key

i got this while trying generating a dsa key on solaris 10 x86 platform how can i solve it? (0 Replies)
Discussion started by: conandor
0 Replies

7. UNIX for Dummies Questions & Answers

SCP using a dsa key

Hello all, My first post in this forum. I am trying to download a file from a server to which I have been granted access. They setup a DSA public key and I have a local private key. When i try to download the file it prompts me for my password. How can I tell unix to use the DSA key... (1 Reply)
Discussion started by: who2
1 Replies

8. Solaris

DSA is unwilling to perform

any idea what does this mean when an ldap user tries to login to my Solaris machine? Apr 24 15:51:49 jupiter sshd: libsldap: Status: 53 Mesg: openConnection: simple bind failed - DSA is unwilling to perform please ntoe that the machine is configured with ldap (not DNS or NIS). And that ldap... (0 Replies)
Discussion started by: melanie_pfefer
0 Replies

9. UNIX for Dummies Questions & Answers

arrow keys / special keys

how to use the arrow keys in shell scripting. is there any special synatax / command for this. i just want to use the arrow keys for navigation. replies appreciated raguram R (3 Replies)
Discussion started by: raguramtgr
3 Replies

10. Cybersecurity

ssh DSA Key fingerprint option

Hi, I have an cron-script running ssh every 5 minutes. After a reboot cron errors as ssh is wating for a DSA key fingerprint authenticy. The request looks as following : The authenticity of host '*** (*.*.*.0)' can't be established. DSA key fingerprint is... (1 Reply)
Discussion started by: davidg
1 Replies
Login or Register to Ask a Question