ssh commands

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Guest

ssh commands

Post by Guest »

Ok, from cacti, i've used the existing Load Average (with SSH) but it doesn't work.

I've generated a key for the user test that i'm using to connect to the remote computer. i've put the public key on the remote computer.
From a normal connection i'm able to connect from the computer with the private key to the remote computer with the public key. And i'm able to run the command remotely. That's fine.

But from cacti, it doesn't work.

I guess its because from the user that the command is running he doesn't have a private/public key. And I guess that the user is httpd.

So I would have to create keys for httpd. But i'm not sure how to do that.
Anyone ? And Am I correct ? Or I have to do something else ?

-Eric
pdelong
Posts: 5
Joined: Fri Sep 27, 2002 12:17 pm
Location: Piscataway, NJ
Contact:

Post by pdelong »

You should be able to use that same public/private key-pair, no matter what user is on either end. It shouldn't matter what the name of the user is who created the key-pair. Just transplant the private key from the user you created it as to the user you want to use it.

You posted this a while ago. Were you able to get around the problem?
JustinHoMi
Posts: 17
Joined: Mon Oct 07, 2002 3:42 pm

Post by JustinHoMi »

Try using ssh -i /path/to/key user@hostname

If you have to use ssh -2 (or whatever) add those commands in there. You can also specify a default key in your ssh config (in /etc/ssh).

Justin
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest