Handle non-standard SSH ports in the known_hosts file.
This PR does not include tests. It looks like the existing testing infrastructure for this cookbook doesn't have a great way to add a test for handling non-standard SSH ports. Suggestions for how to design a test for this change would be much appreciated.
This PR also adds an explicit require 'English'. I was seeing an error where the /etc/ssh/ssh_known_hosts file had no newlines in it after a chef run because $INPUT_RECORD_SEPARATOR was nil.
Description
Handle non-standard SSH ports in the
known_hosts
file.This PR does not include tests. It looks like the existing testing infrastructure for this cookbook doesn't have a great way to add a test for handling non-standard SSH ports. Suggestions for how to design a test for this change would be much appreciated.
This PR also adds an explicit
require 'English'
. I was seeing an error where the/etc/ssh/ssh_known_hosts
file had no newlines in it after a chef run because$INPUT_RECORD_SEPARATOR
wasnil
.Check List