worssh as an alias, allowing scp and rsync

This commit is contained in:
Howland Owl 2017-02-27 19:27:25 +02:00
parent 35da488ca6
commit d4d9c0eef8

14
worssh Executable file → Normal file
View file

@ -1,3 +1,13 @@
#!/bin/zsh
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 "${@}"
# changed to aliases to allow rsync, scp, and ssh to have 'wor' versions.
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" "${@}";
}