29 const std::string_view user = arguments.
get_next();
30 const std::string_view host = arguments.
get_next();
31 const std::string_view remote_path = arguments.
get_next();
36 const std::string_view port_string = arguments.
get_next();
37 const std::string_view log_level_string = arguments.
get_next();
39 unsigned ssh_port = 22;
40 if (port_string.data())
41 ssh_port = std::atoi(port_string.data());
43 int ssh_log_level = 0;
44 if (log_level_string.data())
45 ssh_log_level = std::atoi(log_level_string.data());
47 connector = std::make_unique<ssh::Connector>
59 connection = std::make_unique<Robust_Connection>(*connector, &std::cerr);
61 connection = std::make_unique<Server_File>(*connector, &std::cerr);
63 return connection.get();