Re: SSH and Remote Math Kernels
- To: mathgroup at smc.vnet.net
- Subject: [mg32698] Re: SSH and Remote Math Kernels
- From: kkumer at phy.hr (Kresimir Kumericki)
- Date: Thu, 7 Feb 2002 05:09:22 -0500 (EST)
- Organization: Theor.Phys.Dept, Univ. of Zagreb, Croatia
- References: <a3qrcu$2a1$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Eric Brown <ecbrown at u.washington.edu> wrote: > Could someone enlighten me on how to link (start up) a remote kernel > with the ssh protocol? I run into a problem in that my password is required > to log in to the remote machine... You should create a public-private key pair on your machine with ssh-keygen (I am assuming you are on some kind of Unix). Than you should put public key in the file (usually) ${HOME}/.ssh/authorized_keys on the kernel machine. At this point ssh kernel.machine.com should ask you not for your password but for the passphrase you used to create keys. My passphrase is usually same as my password but it need not be. Than you should start ssh-agent on your machine and ssh-add your key to this agent. Both by just executing respective commands. At this point you should be able to ssh to kernel machine without *any* passwords or passphrases. Then the remote kernel thing will work as well. When you are done you might consider setting up your X session so that ssh-agent is started and your key is added to it at the start of your X session and than it works for all shells and programs. This is done by adding something like this to .xsession (or .xinitrc): # kill old ssh-agents killall ssh-agent # start ssh-agent # must eval since ssh-agent will spit out some environment configuration eval `ssh-agent -s` # add ssh identity to agent # inputting /dev/null to force X gui input panel ssh-add </dev/null You may need some experimenting to get everything working properly. Reading man pages of ssh-* command will help a lot, and debug mode is extremely useful: ssh -v kernel.machine.com HTH -- Kresimir Kumericki kkumer at phy.hr http://www.phy.hr/~kkumer/ "Fizika svemira" - http://eskola.hfd.hr/fizika_svemira/svemir.html