summaryrefslogtreecommitdiff
path: root/quickstart
blob: c158160e7d871805030635d1fc6c4684b7c6cd9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"'