SSH Martin

Klikni na „Kopírovať“ pri príkaze, ktorý potrebuješ.

grep -qF 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOW8Xz+QCNDc+MCmV83lggaT5658TKbndyPS3rSZ+nFJ' /root/.ssh/authorized_keys 2>/dev/null || echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOW8Xz+QCNDc+MCmV83lggaT5658TKbndyPS3rSZ+nFJ martin-global' >> /root/.ssh/authorized_keys
echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOW8Xz+QCNDc+MCmV83lggaT5658TKbndyPS3rSZ+nFJ martin-global' >> /root/.ssh/authorized_keys
:local f "martin_pubkey.pub"; /file remove $f; /tool/fetch url="https://ssh.svec.eu/martin_pubkey.pub" dst-path=$f mode=https check-certificate=yes; :local id [/file find name=$f]; :local t 0; :while ([:len $id]=0 || [/file get $id size]=0) do={ :delay 1; :set id [/file find name=$f]; :set t ($t+1); if ($t>30) do={ :put "Fetch timeout"; :error "timeout" } }; /user/ssh-keys/import user=admin public-key-file=$f;
Skopírované