def scp_upload(local, remote, options={})
        opened = false
        args = []

        scp.upload!(local.to_s, remote.to_s, options.send(:table)) do |ch, name, sent, total|