samedi 7 février 2009

ssh-add et absence de commnuciation

Après avoir créé une clé privée et une publique. Je voudrais ne plus avoir à rentrer la phrase pour me connecter au moins sous terminal.
Je fais sous terminal un ssh-agent
Cela créé bien le fichier temporaire
Mais un ssh-add me donne:
Marc-Girondot-2:~ mgi$ ssh-agent
setenv SSH_AUTH_SOCK /tmp/ssh-BVgdFOunte/agent.9235;
setenv SSH_AGENT_PID 9236;
echo Agent pid 9236;
Marc-Girondot-2:~ mgi$ ssh-add
Could not open a connection to your authentication agent.

Bon après moults recherches, je trouve qu'il faut le lancer dans un shell à part
Marc-Girondot-2:~ mgi$ exec ssh-agent bash
bash-3.2$ ssh-add
Enter passphrase for /Users/mgi/.ssh/id_dsa:
Identity added: /Users/mgi/.ssh/id_dsa (/Users/mgi/.ssh/id_dsa)
Identity added: /Users/mgi/.ssh/identity (/Users/mgi/.ssh/identity)


et là ca marche
mais que pour le shell en cours. Dès que je réouvre le terminal, c'est de nouveau pareil

En plus pour l'instant je n'arrive pas à détourner les communications du finder. Je voudrais faire un tunnel comme pour un vpn.

________________________________________
Ca y est, je crois que j'ai compris, Il faut lancer l'application à l'intérieur du terminal. Glisser déposer l'application sur la fenêtre du terminal et Enter. Il faut essayer...

________________________________________
Infos utiles:
http://fotinakis.com/blog/2008/secure-mac-screen-sharing/

On your other Mac…

Now, from your client computer, open up Terminal and run the following (for reasoning, see the LifeHacker article Add More Functionality to Leopard’s Screen Sharing):

defaults write com.apple.ScreenSharing ShowBonjourBrowser_Debug 1
and (to enable quality control settings)…

defaults write com.apple.ScreenSharing \
'NSToolbar Configuration ControlToolbar' -dict-add 'TB Item Identifiers' \
'(Scale,Control,Share,Curtain,Capture,FullScreen,GetClipboard,SendClipboard,Quality)'

____________
http://www.dribin.org/dave/blog/archives/2007/11/28/ssh_agent_leopard/