let scp_push ssh ~src ~dest =
["scp"; ssh_batch_option ssh]
@ ssh.add_ssh_options
@ (match ssh.port with
| Some p -> ["-P"; "port"]
| None -> [])
@ src
@ (match ssh.user with
| None -> [fmt "%s:%s" ssh.address dest]
| Some u -> [fmt "%s@%s:%s" u ssh.address dest])