21 |
|
|
22 |
test if it works... |
test if it works... |
23 |
|
|
24 |
$ ssh -i ./uptime -q -l mole loophole |
$ ssh -i ~/.ssh/uptime -q -l mole loophole |
25 |
15:42:10 up 42 days, 18:25, 6 users, load average: 0.00, 0.00, 0.00 |
15:42:10 up 42 days, 18:25, 6 users, load average: 0.00, 0.00, 0.00 |
26 |
|
|
27 |
It does? Oh, good. You now know how to setup individual keys for each |
It does? Oh, good. You now know how to setup individual keys for each |
29 |
permissions on loophole to execute that particular command, but other |
permissions on loophole to execute that particular command, but other |
30 |
than that, you are winner! |
than that, you are winner! |
31 |
|
|
32 |
|
If you get one more line before uptime output, try adding -T option |
33 |
|
to ssh. This will prevent pseudo tty allocation and (hopefully) remove |
34 |
|
that output. |
35 |
|
|
36 |
|
If you are stuck with ssh v1 protocol, you have to use rsa1 instead of |
37 |
|
dsa for ssh-keygen and authorized_keys instead of authorized_keys2. |
38 |
|
|
39 |
|
But, think about upgrading. |