ssh and running command
Hello list,
I'd like to execute a certain command upon someone connect to my server
with "ssh robot@my.domain.name". I will not authenticate the visitor in
the ssh session, that is, anyone can do "ssh robot@my.domain.name" in
order to execute my self-defined command or shell script. Is there any
way to configure ssh to achieve this? Additionally, If the
self-defined command or shell script is pertty easy, say,
#!/bin/sh
export PATH=/bin:/usr/bin && \
echo "Hello there!" && exit 0;
Is there also security problem?
--
Patrick Hsieh<pahud@ezplay.tv>
GPG public key http://pahud.net/pubkeys/pahudatezplay.gpg
http://www.ezplay.tv
10:32:50 up 39 days, 2:19, 18 users, load average: 1.73, 1.85, 1.86
Reply to: