MCPcopy Create free account
hub / github.com/METR/vivaria / ssh_args

Method ssh_args

cli/viv_cli/ssh.py:95–101  ·  view source on GitHub ↗

Get the arguments for SSHing to destination specified by opts.

(self, opts: SSHOpts)

Source from the content-addressed store, hash-verified

93 """Wrapper around ssh & scp utilities."""
94
95 def ssh_args(self, opts: SSHOpts) -> list[str]:
96 """Get the arguments for SSHing to destination specified by opts."""
97 return [
98 "ssh",
99 *opts.to_args(),
100 opts.host,
101 ]
102
103 def ssh(self, opts: SSHOpts) -> None:
104 """SSH to the destination specified by opts."""

Callers 3

sshMethod · 0.95
ssh_commandMethod · 0.80
ssh_commandMethod · 0.80

Calls 1

to_argsMethod · 0.80

Tested by

no test coverage detected