Thread
:
Script to open SSH connection and run commands on other Linux device
View Single Post
floffe
2010-01-06 , 17:22
Posts: 287 | Thanked: 127 times | Joined on Oct 2009 @ Sweden
#
2
For logging in, use public key authentication (google is your friend). It really isn't hard to setup, create a pair of keys and put the public one on server and the private one on the device, plus change a line in the server config.
For executing a command upon login, just use ssh user@host command (so you can create a script on the N900 that logs on to the nslu2 and runs a script to toggle the lights).
Quote & Reply
|
The Following User Says Thank You to floffe For This Useful Post:
RouterRebooter
floffe
View Public Profile
Send a private message to floffe
Find all posts by floffe