Reload Command Fails At Non-Standard SSH-Port

Support requests, bug reports, questions etc.
x4FF3
starter
starter
Posts:4
Joined:Tue Jan 17, 2012 16:13
Reload Command Fails At Non-Standard SSH-Port

Post by x4FF3 » Mon Jul 23, 2012 10:47

Hi,

i have a Collector which i "supply" with new config via scp. SSH is only available at Port 55222. SCP works fine...but the Reload Command fails. It tries to connect to the "-P 55222" flag.

deployment.ini:

Code: Select all

[copy Collector global config]
type        = scp
host        = remote.collector.net
source_file = "/tmp/global/"
target_file = "/etc/icinga/"
user        = root
indetify_file = "/var/www/.ssh/id_rsa"
ssh_options   = "-i /var/www/.ssh/id_rsa -o 'StrictHostKeyChecking=no' -o 'ConnectTimeout 15' -o 'UserKnownHostsFile=/dev/null' -P '55222'"

[copy Collector local config]
type        = scp
host        = remote.collector.net
source_file = "/tmp/ARS_Collector"
target_file = "/etc/icinga/local/"
user        = root
identify_file = "/var/www/.ssh/id_rsa"
ssh_options   = "-i /var/www/.ssh/id_rsa -o 'StrictHostKeyChecking=no' -o 'ConnectTimeout 15' -o 'UserKnownHostsFile=/dev/null' -P 55222"
reload_command = "/etc/init.d/icinga restart"
Failure:

Code: Select all

system call 	FAILED	

ssh -i /var/www/.ssh/id_rsa -o 'StrictHostKeyChecking=no' -o 'ConnectTimeout 15' -o 'UserKnownHostsFile=/dev/null' -P 55222 root@remote.collector.net "/etc/init.d/icinga restart"

		

ssh: connect to host 55222 port 22: Invalid argument

x4FF3
starter
starter
Posts:4
Joined:Tue Jan 17, 2012 16:13

Re: Reload Command Fails At Non-Standard SSH-Port

Post by x4FF3 » Mon Jul 23, 2012 12:46

so, it was my fault ;)

but here the solution. maybe it helps somebody :)

Code: Select all

ssh_options   = "-i /var/www/.ssh/id_rsa -o 'StrictHostKeyChecking=no' -o 'ConnectTimeout 15' -o 'UserKnownHostsFile=/dev/null' -o 'Port 55222'"

Locked