Hi everyone,
So I searched around the internet and find various posts about "can't SSH in jails" but none seems to fix my problem :
I'm setting up a minecraft server jail following this guide : https://www.ixsystems.com/community/threads/how-to-install-minecraft-server-in-a-jail.18246/
On step "Download the jar file and place it in your jail under /srv/minecraft" I want to move the files from my laptop to the jail using scp but cant SSH access in as root, I'm stuck there.
• The guide tels to create a minecraft user : done.
• I also added this new user in wheel group as told in FreeNAS's doc "Users that require root access must also be a member of the wheel group. Enter wheel when prompted to invite user into other groups? []:"
• I allowed SSH into jail with those lines in /etc/rc.conf
> sshd_enable="YES"
also
> PermitRootLogin yes
The core issue is that trying to scp from Terminal on my laptop using minecraft@jail'sIP... into /srv/minecraft : Permission denied
• ssh as root@jail'sIP
• ssh minecraft@jail'sIP works fine.
But then sudo su just dont let me in.
(tried many times)
I passwd root in the jail using the FreeNAS shell in the web ui and restarted the jail after any of my changes, so i'm pretty sure about the password and stuff.
My best guest then is somewhat of a permission issue ..?
Thx for your help guys
[EDIT] : Kinda success
I should have tried that earlier, I've obviously been able to scp into /home/minecraft from my Terminal and then mv from there to /srv/minecraft using the webUI jexec (so logged as root).
BUT STILL I'd really love to know if there is an answer to the real su/root ssh problem itself.
Love.
So I searched around the internet and find various posts about "can't SSH in jails" but none seems to fix my problem :
I'm setting up a minecraft server jail following this guide : https://www.ixsystems.com/community/threads/how-to-install-minecraft-server-in-a-jail.18246/
On step "Download the jar file and place it in your jail under /srv/minecraft" I want to move the files from my laptop to the jail using scp but cant SSH access in as root, I'm stuck there.
• The guide tels to create a minecraft user : done.
• I also added this new user in wheel group as told in FreeNAS's doc "Users that require root access must also be a member of the wheel group. Enter wheel when prompted to invite user into other groups? []:"
• I allowed SSH into jail with those lines in /etc/rc.conf
> sshd_enable="YES"
also
> PermitRootLogin yes
The core issue is that trying to scp from Terminal on my laptop using minecraft@jail'sIP... into /srv/minecraft : Permission denied
• ssh as root@jail'sIP
• ssh minecraft@jail'sIP works fine.
But then sudo su just dont let me in.
(tried many times)
I passwd root in the jail using the FreeNAS shell in the web ui and restarted the jail after any of my changes, so i'm pretty sure about the password and stuff.
My best guest then is somewhat of a permission issue ..?
Thx for your help guys
[EDIT] : Kinda success
I should have tried that earlier, I've obviously been able to scp into /home/minecraft from my Terminal and then mv from there to /srv/minecraft using the webUI jexec (so logged as root).
BUT STILL I'd really love to know if there is an answer to the real su/root ssh problem itself.
Love.
Last edited: