diff --git a/lib/train/transports/ssh.rb b/lib/train/transports/ssh.rb index 67a1976d..1563f8ba 100644 --- a/lib/train/transports/ssh.rb +++ b/lib/train/transports/ssh.rb @@ -97,8 +97,7 @@ def validate_options(options) if options[:auth_methods] == ['none'] if ssh_known_identities.empty? fail Train::ClientError, - 'You must configure at least one authentication method for SSH:'\ - ' Agent, Key or Password.' + 'Your SSH Agent has no keys added, and you have not specified a password or a key file' else logger.debug('[SSH] Using Agent keys as no password or key file have been specified') options[:auth_methods].push('publickey')