Jump to content

shell script


uber_tom
 Share

Recommended Posts

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.

Link to comment
Share on other sites

  • 1 month later...
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...