Home Forums OS X Server and Client Discussion Questions and Answers Where to put ssh key for login script

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #377573
    tthaler
    Participant

    Hello Admins

    I need to do the following procedure.
    At login on “Computer A” of “User A” start login script “Login”.
    Script “Login” does read the user how does login to “Computer A” and then does compare the value it gets with a list of users. If the “User A” is on this list, the script “Login” does connect to “Computer B” over ssh and does start script “Login” on “Computer B”. After execution of script “Login” on “Computer B”, the script “Login” on “Computer A” does exit and the normal login procedure is going on.

    What I did ’til now:
    With command ‘ssh-keygen -d’ on “Computer B”, I did create a public/private dsa key pair.
    As I know that bsh scripts are running as root, I did the above ssh command as root user.
    Therefore the keys are now in ‘/var/root/.ssh’

    My question is now, where do I have to put the public key on “Computer A”. Is it also in the folder ‘/var/root/.ssh’ or is it somewhere else?

    Thank you for your feedback.
    Kind regards
    Thomas Thaler

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Comments are closed