On 09/27/2010 06:39 PM, John Andersen wrote:
You would use a command (in your local machine) something like ssh david:your-remote-machine-ip kmymoney
That would be: ssh -X david:your-remote-machine-ip kmymoney Also, if you don't want to enter your password each time you ssh into your laptop, then setup a ssl keyset between the boxes. It takes about 5 seconds. Since you want access to your laptop from your desktop, do the following: (1) create your keyset on you desktop with ssh-keygen -t dsa which will generate a 1024bit dsa keyset in ~/.ssh The files will be id_dsa (your private key) and id_dsa.pub (your public key). (2) So you can keep them strait if you have several boxes, go ahead and copy the public key and append your hostname: cp .ssh/id_dsa.pub .ssh/id_dsa.pub.desktophostname (3) What you now need to do is get the public key on your laptop. Use rsync or scp: rsync id_dsa.pub.desktophostname laptop:~/.ssh (give your password this time) (4) Now you just need to put the desktop public key in ~/.ssh/authorized_keys on your laptop. So on your laptop, do cat ~/.ssh/id_dsa.pub.desktophostname >> ~/.ssh/authorized_keys (5) Now ssh from your desktop into your laptop. You will get a one time confirmation to add 'XYZ to your list of know hosts (y/n)' just hit y and you are in your laptop. Now exit ssh to your laptop and ssh back in -- this time no password prompt and no confirmation. Your public key/private key setup is complete. If you swap hard drives or something you will get a message telling you the host has changed and telling you you need to remove an offending key from your ~/.ssh/known_hosts file on the box you are initiating the ssh session from. Just look at the number of the offending key (it corresponds to the line you need to delete in the known_hosts file). Then just edit the file and delete the line. That's it. I have all my boxes setup to unilize this setup and I have a common location for all the public keys. So if I add a new box, I can just copy the authorized_keys file 'pre-filled' to the new host, gen the keys for the new host and distribute its public key and we're done. Good luck. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org