From 1b890a01b22ab845de378f918abbd642b22c8539 Mon Sep 17 00:00:00 2001 From: xie hao cheng Date: Mon, 14 Oct 2024 13:47:54 +0800 Subject: improvements --- port-forward/ssh-port-forward.sh | 3 ++- quickstart | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 quickstart diff --git a/port-forward/ssh-port-forward.sh b/port-forward/ssh-port-forward.sh index 59350c4..b549560 100755 --- a/port-forward/ssh-port-forward.sh +++ b/port-forward/ssh-port-forward.sh @@ -13,4 +13,5 @@ ssh $HOST $(for i in $(seq ${j}000 ${j}005); do echo "-R $i:localhost:$i"; done; echo "port forward is available on port {j}00x" -#seperate all the files +#ideally port forward from 2 onwards, there seems to be a problem for 1000(or just change all to j001) +#jupyter lab --port=2001 --ip=0.0.0.0 diff --git a/quickstart b/quickstart new file mode 100644 index 0000000..c158160 --- /dev/null +++ b/quickstart @@ -0,0 +1,14 @@ +# output privkey pointer from yubikey +ssh-keygen -K + +ssh-agent bash -c 'ssh-add ~/work/git/keys/public/macm1-resident && ssh -A -p24 x@sg1.0nom.ch' + +ssh -i ~/work/git/keys/public/macm1-resident root@sg1.0nom.ch + +while true; do nc -l -p 5023 | openssl enc -d -aes-256-cbc -pbkdf2 -pass pass:YourPassword | pbcopy; done + +file=t4.cpp && gcc -x c++ -lstdc++ -std=c++17 ${file} -o ${file%.cpp} && ./${file%.cpp} + + +# ssh forward agent to pubserver1 then to privserver1 +ssh-agent bash -c 'ssh-add ~/work/git/keys/public/macm1-resident && ssh -A -p24 x@sg1.0nom.ch -t "ssh -A fedora@192.168.124.45"' -- cgit v1.2.3-70-g09d2