Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-03-2003, 09:29 PM
|
#1
|
Member
Registered: Aug 2002
Posts: 189
Rep:
|
run programs on a remote computer with script, how?
I know about ssh but I need a solution that will work independent of user input. Lets say I want to execute a shutdown -h now command on one of the computers on the network via a script from another computer in the network. How do I do this. ssh asks for a password. I figured out the sudo part to make it passwordless. Any ideas? Thanks
|
|
|
07-04-2003, 05:50 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you can set up rexec to execute commands remotely from a known, trusted host automatically, you'd possibly want to do this through an ssh tunnel for security though.
for ssh authorisation automatically though, you'd need a dsa or rsa key pair setup for the particular host.
|
|
|
07-06-2003, 04:26 PM
|
#3
|
Member
Registered: Aug 2002
Posts: 189
Original Poster
Rep:
|
Thank you very much
got it working with ssh pasword less login and its feature to execute a remote command.
|
|
|
07-06-2003, 04:38 PM
|
#4
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
Sorry, what?! You just let anyone in the world have the ability to remotely shutdown your pc?!
|
|
|
07-06-2003, 11:33 PM
|
#5
|
Member
Registered: Aug 2002
Posts: 189
Original Poster
Rep:
|
I dont think so. It still uses DSA key. At least thats how I understand it works. The remote pc just has a copy of my public key.
|
|
|
07-07-2003, 01:48 PM
|
#6
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
Ok then, that sounds a bit saner.
|
|
|
All times are GMT -5. The time now is 05:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|