Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] ssh: ./ssh/id_dsa chiavi multiple
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
MaTz
Apprentice
Apprentice


Joined: 28 Aug 2005
Posts: 166
Location: Genova (IT)

PostPosted: Sat Feb 10, 2007 12:57 pm    Post subject: [Solved] ssh: ./ssh/id_dsa chiavi multiple Reply with quote

Ho il seguente problema:
ho un utente che ha a disposizione un numero di chiavi private ad ogni chiave è associato un host:

Host(0) => ./ssh/id_dsa
Host(1) => ./ssh/id_dsa_1
....
Host(N) => ./ssh/id_dsa_N

se io provo a connettermi: ssh -2 Host(0) la connessione va a buon fine
se provo a connettermi a Host(1) invece non va a buon fine.
Usando l'opzione -v (debug) mi pare di leggere che ssh legga solo il file ./ssh/id_dsa

allora ho provato un cat /.ssh/id_dsa_1 >> .ssh/id_dsa
se mi connetto all'host(0) va a buon fine altrimenti cade in errore.

Ora francamente non so come muovermi.
Ho pensato che una possibile soluzione fosse ssh-agent, ssh-add ed effettivamente cosi' funziona.
La cosa pero' mi pare molto scomoda.
sapreste indicarmi una via senza passare per ssh-agent?

Grazie


Last edited by MaTz on Sat Feb 10, 2007 1:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Luca89
Advocate
Advocate


Joined: 27 Apr 2005
Posts: 2107
Location: Agrigento (Italy)

PostPosted: Sat Feb 10, 2007 1:14 pm    Post subject: Reply with quote

In ~/.ssh/config:

Code:
Host host1
IdentityFile ~/.ssh/id_dsa_1

Host host2
IdentityFile ~/.ssh/id_dsa_2


e via dicendo, se hai bisogno di altre opzioni leggi "man ssh_config" o guarda /etc/ssh/ssh_config.
_________________
Running Fast!
Back to top
View user's profile Send private message
MaTz
Apprentice
Apprentice


Joined: 28 Aug 2005
Posts: 166
Location: Genova (IT)

PostPosted: Sat Feb 10, 2007 1:34 pm    Post subject: Reply with quote

Grazie,
non sapevo assolutamente dove cercare!
Solved
Back to top
View user's profile Send private message
GiRa
l33t
l33t


Joined: 07 Apr 2005
Posts: 717

PostPosted: Sat Feb 10, 2007 2:10 pm    Post subject: Reply with quote

Io non userei dsa ma rsa dato che non è più coperto da brevetto.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum