1 |
How to setup remote, non-interactive, logon with multiple command for |
How to setup remote, non-interactive, log-on with multiple command for |
2 |
same remote username? |
same remote user-name? |
3 |
|
|
4 |
|
|
5 |
For the rest of this document, destination host will be called 'loophole', and |
For the rest of this document, destination host will be called 'loophole', and |
10 |
|
|
11 |
$ ssh-keygen -t dsa -f ~/.ssh/uptime |
$ ssh-keygen -t dsa -f ~/.ssh/uptime |
12 |
|
|
13 |
Append ~/.ssh/uptime.put on destination host to ~mole/.ssh/authorized_keys2 |
Append ~/.ssh/uptime.pub on destination host to ~mole/.ssh/authorized_keys2 |
14 |
and prepend following before ssh-dss: |
and prepend following before ssh-dss: |
15 |
|
|
16 |
command="uptime" |
command="uptime" |