dsa keys - different pub file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting dsa keys - different pub file
# 1  
Old 03-10-2011
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 pub file to authorized_keys on server2 and now SFTP is working.

Now i have removed everything in my .ssh directory and create new keys, but this time i have saved the private and pub files as server1-id_dsa.
Now pub file is server1-id_dsa.pub and private is server1-id_dsa. I have moved the contents of pub file to authorized_keys on server2.

Now when i try to connect (SFTP ), it is asking me for a password.
Will SFTP only looks at id_dsa and id_dsa.pub files?
If yes, then how can we handle multiple connections to multiple servers?
Can i not use a different file name for my pub and private files?
# 2  
Old 03-10-2011
Code:
$ sftp
usage: sftp [-1246Cpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
          [-D sftp_server_path] [-F ssh_config] [-i identity_file]
          [-o ssh_option] [-P port] [-R num_requests] [-S program]
          [-s subsystem | sftp_server] host
       sftp [user@]host[:file ...]
       sftp [user@]host[:dir[/]]
       sftp -b batchfile [user@]host
$

# 3  
Old 03-10-2011
Hi,

I do not have that option under sftp.

sftp [-1Cv] [-B buffer_size] [-b batchfile] [-F ssh_config]
[-o ssh_option] [-P sftp_server_path] [-R num_requests]
[-S program] [-s subsystem | sftp_server] host
sftp [[user@]host[:file [file]]]
sftp [[user@]host[:dir[/]]]
sftp -b batchfile [user@]host

Anyways i was able to connect using ssh. But how can i transfer a file under ssh. scp is not working for me?

I appreciate your response
# 4  
Old 03-10-2011
In what way is scp "not working"? What did you do, and what happened?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Rsync in bash script doesn't work even after placing pub key in target server

Hello Friends, My bash script is like this #!/bin/bash # request Bourne shell as shell for job #$ -S /bin/bash # assume current working directory as paths #$ -cwd #$ -N rsync-copy # # print date and time date rsync -rltD --progress "ssh -i /home/myname/.ssh/id_rsa"... (4 Replies)
Discussion started by: jacobs.smith
4 Replies

2. Shell Programming and Scripting

parsing data from a big file using keys from another smaller file

Hi, I have 2 files format of file 1 is: a1 b2 a2 c2 d1 f3 format of file 2 is (tab delimited): a1 1.2 0.5 0.06 0.7 0.9 1 0.023 a3 0.91 0.007 0.12 0.34 0.45 1 0.7 a2 1.05 2.3 0.25 1 0.9 0.3 0.091 b1 1 5.4 0.3 9.2 0.3 0.2 0.1 b2 3 5 7 0.9 1 9 0 1 b3 0.001 1 2.3 4.6 8.9 10 0 1 0... (10 Replies)
Discussion started by: Lucky Ali
10 Replies

3. Shell Programming and Scripting

id_dsa.pub

Hi, I need to set up keys between two servers to make a SFTP transfer. I know the process of generating keys (public and private ) on server1 and moving the public key to server2. But in this case server2 already has a id_dsa.pub file. Now i may have to add the new key generated on server1... (3 Replies)
Discussion started by: forums123456
3 Replies

4. Shell Programming and Scripting

Rename .pub and private key

I wish to generate a id_dsa.pub and id_dsa (Public and Private Key) in a common user group. I have checked the .ssh directory and i have already found id_dsa.pub and id_dsa existing. Is that OK if i create both the keys in my home direcotry, rename it to jjj.pub and jjj and move to Common user... (1 Reply)
Discussion started by: vasuarjula
1 Replies

5. Shell Programming and Scripting

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 /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... (0 Replies)
Discussion started by: phpsnook
0 Replies

6. 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

7. UNIX for Dummies Questions & Answers

ssh pub key auth - can some please guide me idiot proof

hello. can somebody please idiot proff simple guide me how to set up ssh public key authenciation? i am stuck, i tried long and googled a lot but i cant get it. thanks in advance. (4 Replies)
Discussion started by: scarfake
4 Replies

8. 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

9. 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

10. 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
Login or Register to Ask a Question