Hi all, I don't know if this is the correct section, but I need help using ssh / scp.
I need to copy some files from my localhost to a remote machine passing through a gateway.
I have an account on the gateway (but don't have writing permission on it) and an account on the remote machine (where i can write).
I can ssh to the remote machine in an easy wai:
$ ssh -t gatewayuser@gatewaymachine remoteuser@remotemachine
but how can I scp a file directly to the remote machine?
I need to copy some files from my localhost to a remote machine passing through a gateway.
I have an account on the gateway (but don't have writing permission on it) and an account on the remote machine (where i can write).
I can ssh to the remote machine in an easy wai:
$ ssh -t gatewayuser@gatewaymachine remoteuser@remotemachine
but how can I scp a file directly to the remote machine?