Server Management - Systems Insight Manager
1835091 Members
2170 Online
110073 Solutions
New Discussion

Re: SSH and SIM

 
Carolyn_8
Frequent Advisor

SSH and SIM

I have SIM on Windows 2003 and am managing Windows 2000 and RHAS2.1 Linux servers. I was able to run mxagentconfig successfully for my Linux servers but am getting authentication errors when I try to run commands within SIM. When I ran mxagentconfig, I set it up using a local user/pw for the Linux servers but when I try to run a command from SIM, it is using the user/pw I used to login to SIM and not the one I set up with mxagentconfig. It doesn't let you specify what userid to issue the command as. It seems the only way to get it to send the command using an ID that is valid on the Linux server is to set that same user id/pw on the SIM server? That doesn't seem right so I must be missing something. Ideas?
1 REPLY 1
Carolyn_8
Frequent Advisor

Re: SSH and SIM

I did get this to work by running mxagentconfig -a -u root -p -n for my Linux servers. But I still don't know how to make SIM issue commands from a user other than root. I found some reference to a "tool definition file in XML format" in the SIM installation/user guide but it doesn't say where this file is and how you go about updating it to specify the preferred "execution user" for a specific tool.
I also have problems getting ssh to work with Windows 2000 servers. I was never able to get mxagentconfig to work for my Windows 2000 servers even though I saw in the event log for the managed node that the command was issued successfully. I always got back an error message on the CMS (I think it was invalid host). I ran mkpasswd on the managed nodes and had the proper directories but never got it to work and had to use the brute force method which is to copy the dtfSshKey.pub to the managed system and then doing a "type >> /.ssh/authorized_keys2. That got around the authentication error but attempting to run a command I got a bash message saying it couldn't find the file \bin\ssh.exe. So, had to copy c:\Program Files\OpenSSH\bin directory to c:\ on all the managed nodes in order to get it to find the commands to execute. Somehow I don't think that is the preferred method! (This is a lab environment so I just needed to get it to work for now)