Discussion:
Custom SSH command lines
robert johnston
2013-11-07 03:45:43 UTC
Permalink
robert johnston [http://community.zenoss.org/people/robbdj] created the discussion

"Custom SSH command lines"

To view the discussion, visit: http://community.zenoss.org/message/75189#75189

--------------------------------------------------------------
Is it possible to setup a custom SSH command line or at least add my own parameters to the SSH command that is used to monitor servers via SSH?  I basically need to execute SSH to an internal server via a bastion host to monitor the servers on the internal network ... poor man's VPN really.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75189#75189]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
hydruid
2013-11-07 13:34:00 UTC
Permalink
hydruid [http://community.zenoss.org/people/hydruid] created the discussion

"Re: Custom SSH command lines"

To view the discussion, visit: http://community.zenoss.org/message/75203#75203

--------------------------------------------------------------
It might be easier to setup a local script that does a putty tunnel, then
you would only have to change the port config on zenoss to do ssh
monitoring!
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75203#75203]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
j053ph4
2013-11-07 14:12:11 UTC
Permalink
j053ph4 [http://community.zenoss.org/people/j053ph4] created the discussion

"Re: Custom SSH command lines"

To view the discussion, visit: http://community.zenoss.org/message/75190#75190

--------------------------------------------------------------
how about using 'sshpass' in a local COMMAND datasource (running either locally or itself via ssh), something like:

sshpass -p ${dev/zCommandPassword} ssh -q -T -o StrictHostKeyChecking=no root@${dev/manageIp} 'service snmpd restart'
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75190#75190]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...