ssh config file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ssh config file
# 1  
Old 06-24-2010
ssh config file

Hello all

I have question regarding the id_dsa keys and authorized_keys file in .ssh directory.
I know if we try to SFTP, id_dsa.pub file on server1 will be verified with contents of authorized_keys on other server and SFTP will happen once verification passes.

No i want to use id_dsa1.pub and copy these contents to authorized_keys1.
When i run th SFTP id_dsa1.pub need to beused for verificatio instead of id_dsa.pub I beleive we can do this by modifiying the config file.

Where can i find the config file. How can i modify it so that SFTP uses the file which i specify in config file.
# 2  
Old 06-24-2010
All the public keys should always be in the ~/.ssh/authorized_keys file on the server-end.
The client-end of the ssh/sftp connection will negotiate with the server-end based on the private keys that it has in its ~/.ssh directory and see which one can be used.

So, if you need to use id_rsa/id_rsa.pub from server1 to server2 and id_rsa1/id_rsa1.pub from server3 to server2. You would do the following:
  1. concatenate id_rsa.pub to ~/.ssh/authorized_keys on server2
  2. concatenate id_rsa1.pub to ~/.ssh/authorized_keys on server2
  3. keep id_rsa in ~/.ssh directory on server1
  4. keep id_rsa1 in ~/.ssh directory on server3

ssh/sftp should take care of the rest.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Apache virtual host config vs global config problem

Hi folks, I am trying to configure Apache webserver and also a virtual host inside this webserver. For Global server config: /var/www/html/index.html For virtual host config: /var/www/virtual/index.html Both client10 & www10 are pointing to 192.168.122.10 IP address. BUT, MY... (1 Reply)
Discussion started by: freebird8z
1 Replies

2. Shell Programming and Scripting

Ssh config file different location

I'm trying use 'sed' to change a line on sshd_config file. But the problem is sshd_config file can be two different locations.(eg: /etc/ssh/sshd_config or /usr/local/ssh/sshd_config) Was wondering how to write a shell script to search or mention the sshd_config location? (3 Replies)
Discussion started by: pjeedu2247
3 Replies

3. Solaris

Can't login using ssh after IPMP config.

Dear All, After configuring IPMP in 2 fresh Servers (T5520 and T2000) I can't login in any of them using SSH, I can login by serial console then I had to enable Telnet to access. IPMP works fine. This is the error in /var/adm/messages: sshd: Failed password for lvalle from 172.28.12.95 port... (0 Replies)
Discussion started by: Luis Valle
0 Replies

4. Shell Programming and Scripting

Shell script that will compare two config files and produce 2 outputs 1)actual config file 2)report

Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated. script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made. OS :Susi linux ver 10.3. ... (4 Replies)
Discussion started by: muraliinfy04
4 Replies

5. Shell Programming and Scripting

parsing config file to create new config files

Hi, I want to use a config file as the base file and parse over the values of country and city parameters in the config file and generate separate config files as explained below. I will be using the config file as mentioned below: (config.txt) country:a,b city:1,2 type:b1... (1 Reply)
Discussion started by: clazzic
1 Replies

6. UNIX for Dummies Questions & Answers

Pls help me urgently.... Regarding Putty SSH Config.

I have downloaded the Putty SSH configuration. I have entered my Host name as illinois.engr.sjsu.edu and i am trying to save that. But i am unable to save. Also i opened the session and entered my log in name But it says using keyboard interactive authentication.I am not able to get into $ ... (1 Reply)
Discussion started by: VamsiVasili
1 Replies

7. Solaris

network config problem - how to set the server for others to ssh without password

Hi, I want to ssh the linux server without inputting the password, how can I config this server? Thanks in advance! (1 Reply)
Discussion started by: GCTEII
1 Replies

8. UNIX for Advanced & Expert Users

Editing MySQL config through ssh ?

I need a smal "how to" regarding editing mysql configuration on a unix server. Thanks in advance. (2 Replies)
Discussion started by: Denis.R
2 Replies

9. UNIX for Advanced & Expert Users

SSH and config.....

Hi all! I'm new to the SSh concept, and i'm supposed to install SSH over 400 servers. I found out how to generate all the keys and the passphrases ( you'll say that ain't that hard!). But now, i just can't get the thing to start. I started sshd on both of my test servers, and on one of 'em, i... (1 Reply)
Discussion started by: penguin-friend
1 Replies

10. UNIX for Advanced & Expert Users

SSh install and config

Hi all........... I work for a big french car manufacturer. I'm supposed to put up a secure protocol, that means ssh. I'm looking for free ssh codes and binaries, and the install and config of it... Any help would be great... :confused: :confused: :confused: Thanx Jason (3 Replies)
Discussion started by: a_new_admin
3 Replies
Login or Register to Ask a Question