worssh as an alias, allowing scp and rsync
This commit is contained in:
parent
35da488ca6
commit
d4d9c0eef8
1 changed files with 12 additions and 2 deletions
14
worssh
Executable file → Normal file
14
worssh
Executable file → Normal file
|
|
@ -1,3 +1,13 @@
|
||||||
#!/bin/zsh
|
# changed to aliases to allow rsync, scp, and ssh to have 'wor' versions.
|
||||||
ssh -D 9944 -o "ProxyCommand /usr/bin/nc -X 5 -x 127.0.0.1:9000 %h %p" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "${@}"
|
|
||||||
|
|
||||||
|
worssh() {
|
||||||
|
ssh -D 9944 -o "ProxyCommand /usr/bin/nc -X 5 -x 127.0.0.1:9000 %h %p" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "${@}";
|
||||||
|
}
|
||||||
|
|
||||||
|
worscp() {
|
||||||
|
scp -o "ProxyCommand /usr/bin/nc -X 5 -x 127.0.0.1:9000 %h %p" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "${@}";
|
||||||
|
}
|
||||||
|
|
||||||
|
worrsync() {
|
||||||
|
rsync -e "ssh -o 'ProxyCommand /usr/bin/nc -X 5 -x 127.0.0.1:9000 %h %p' -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "${@}";
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue