id_dsa.pub


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting id_dsa.pub
# 1  
Old 03-01-2011
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 to id_dsa.pub file residing on server2 without disturbing the existing contents of ids_dsa.pub of server2.
How can i do this?
# 2  
Old 03-01-2011
Is the idea not to copy the public key of server1 into the authorozed_keys file for server2?
# 3  
Old 03-01-2011
Yes

That was the idea.
How can i do that wihtout disturbing the existing contents of authorized keys
# 4  
Old 03-01-2011
authorized_keys is designed to contain a number of entries (<CR> at the end of each), just append your id_dsa.pub to the end of the existing file.

Eg transfer id_dsa.pub to server2 as forums123456.newkey.pub and then:
Code:
$ cat forums123456.newkey.pub >> .ssh/authorized_keys

Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Does vsftpd support user access with client certificate with priv/pub key + vsftpd certificate?

:rolleyes:I am trying to setup all certificate based client-server environment in Linux using vsftpd and curl with openssl. I would like to make a user access with vsftpd certificate and user own client certificate (self-signed) with private/public key. I don't see google posts about the my plan... (4 Replies)
Discussion started by: gogogo
4 Replies

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

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

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