@BeforeMethod(alwaysRun = true) public void setUp() throws Exception { managementContext = new LocalManagementContext(); host = managementContext .getLocationManager() .createLocation( LocationSpec.create(SshMachineLocation.class) .configure("address", Networking.getLocalHost()) .configure(SshTool.PROP_TOOL_CLASS, RecordingSshjTool.class.getName())); }
public Map<String, Object> customSshConfigKeys() throws UnknownHostException { return MutableMap.<String, Object>of( "address", Networking.getLocalHost(), SshTool.PROP_SESSION_TIMEOUT.getName(), 20000, SshTool.PROP_CONNECT_TIMEOUT.getName(), 50000, SshTool.PROP_SCRIPT_HEADER.getName(), "#!/bin/bash"); }