mirror of https://github.com/CrimsonTome/tldr.git
scp: add proxy example (#11567)
parent
513a6cd893
commit
4da53e7db5
|
@ -30,4 +30,8 @@
|
||||||
|
|
||||||
- Use a specific ssh private key for authentication with the remote host:
|
- Use a specific ssh private key for authentication with the remote host:
|
||||||
|
|
||||||
`scp -i {{~/.ssh/private_key}} {{local_file}} {{remote_host}}:{{/path/remote_file}}`
|
`scp -i {{~/.ssh/private_key}} {{path/to/local_file}} {{remote_host}}:{{path/to/remote_file}}`
|
||||||
|
|
||||||
|
- Use a specific proxy when connecting to the remote host:
|
||||||
|
|
||||||
|
`scp -J {{proxy_username}}@{{proxy_host}} {{path/to/local_file}} {{remote_host}}:{{path/to/remote_file}}`
|
||||||
|
|
Loading…
Reference in New Issue