uber_tom Posted December 7, 2006 Posted December 7, 2006 I am trying to write a script to run some programs remote from another computer on my network. I was hoping to ssh in using -X and run the programs to save me installing (and configuring) them again. However after I connect to another computer I need to enter my username and password. I was wondering if I could incorporate these into my script for a silent connection and execution of the program or if failing that i could be asked to enter the info in a small xterm, which will disappear after the password in entered and then run the program silently. n.b the password and username are the same on all my computers, if that helps. Quote
jool Posted December 7, 2006 Posted December 7, 2006 You could add the password but you really shouldn't. Instead the recommended way of doing it is to use key files. SSH with keys Quote
l0gic Posted December 7, 2006 Posted December 7, 2006 Aye, public key authentication kicks ass. It may seem daunting at first, but once you get the hang of it it's extremely simple and convenient. Quote
uber_tom Posted December 8, 2006 Author Posted December 8, 2006 Looks interesting, I’ll have a play when I get home from work. Thanks Quote
Rocold Posted January 9, 2007 Posted January 9, 2007 You could add the password but you really shouldn't. Instead the recommended way of doing it is to use key files.SSH with keys I had a script to send files from one computer to another everynight (backup of security camera images). Setting up ssh with keys was the easiest way I found, plus it's more secure. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.