ssh with authorized_keys from one to another jailed shelluser

Discussion in 'General' started by yalsicor, Aug 18, 2015.

  1. yalsicor

    yalsicor New Member

    Hi there,

    I'd like to connect from one jailed shelluser to another with ssh keys.

    I did create the id_rsa and as root in the .ssh dir of shelluser one and changed the ownership to the shelluser and its group.
    I copied the content of the to the authorized_keys of shelluser two.
    I tried to connect from one to the other, but still keeps asking for the password.
    Am I missing something? Do I need to put the files somewhere else?

    Thanks, yal
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    No need to create any files manually, ispconfig has a field for th keys and using that ensures that they are in the right path and have the right permissions.
  3. yalsicor

    yalsicor New Member

    Ok, I can add public keys to the shellusers.
    But i cant't find a way to create the keypair for the shellusers.
    How do I create a rsa keypair for a jailed shell?
    I can log in with keys from my local machine, but I can't figure out how to log in from one jail shell to another.
    edit: i can log in with ssh when i manually specify the id_rsa key file by ssh -i ~/.ssh/id_rsa. So the location of the keys is wrong. Where do I put them?
    Last edited: Aug 18, 2015

Share This Page