Don't use IdentitiesOnly under 'ssh -p'
This commit is contained in:
parent
00c4193b43
commit
59852e79de
|
@ -79,7 +79,8 @@ module Vagrant
|
|||
"-o", "StrictHostKeyChecking=no", "-o", "LogLevel=QUIET"]
|
||||
|
||||
# Solaris/OpenSolaris/Illumos uses SunSSH which doesn't support the IdentitiesOnly option
|
||||
command_options += ["-o", "IdentitiesOnly=yes"] if !Util::Platform.solaris?
|
||||
# (Also don't use it in plain mode, it'll skip user agents.)
|
||||
command_options += ["-o", "IdentitiesOnly=yes"] if !Util::Platform.solaris? || plain_mode
|
||||
|
||||
command_options += ["-i", options[:private_key_path]] if !plain_mode
|
||||
command_options += ["-o", "ForwardAgent=yes"] if ssh_info[:forward_agent]
|
||||
|
|
Loading…
Reference in New Issue