- Joined
- Nov 25, 2013
- Messages
- 7,776
Weird. Can you set a static IP address like you did with that 11.2 jail? You can use the UI or iocage whichever you prefer.
here is what im gettingWeird. Can you set a static IP address like you did with that 11.2 jail? You can use the UI or iocage whichever you prefer.
Patrick--I have the same error with a static IPWeird. Can you set a static IP address like you did with that 11.2 jail? You can use the UI or iocage whichever you prefer.
ifconfig -a
output should have shown an interface for the VM but did not. That puzzles me a bit. And jails are supposed to use the same connections as the VMs ...My VM machine is OFF.Something must have gone wrong with iocage create. If there is no /bin/sh probably more is missing. This turns out to be harder than I guessed to do remotely without access to your system. I used exactly the commands I gave you to create and start a jail.
Maybe you have more success with the UI - how did you do that 11.2 jail? Anyway, if you get a 12.2 jail to run, we can proceed.
One question: is your Windows VM shut down or is it running? Yourifconfig -a
output should have shown an interface for the VM but did not. That puzzles me a bit. And jails are supposed to use the same connections as the VMs ...
OK I have mycloud jail up and running on a static IP with SSH enable. However, I can't edit the config file to allow to login at the root. I getting permission deniedSomething must have gone wrong with iocage create. If there is no /bin/sh probably more is missing. This turns out to be harder than I guessed to do remotely without access to your system. I used exactly the commands I gave you to create and start a jail.
Maybe you have more success with the UI - how did you do that 11.2 jail? Anyway, if you get a 12.2 jail to run, we can proceed.
One question: is your Windows VM shut down or is it running? Yourifconfig -a
output should have shown an interface for the VM but did not. That puzzles me a bit. And jails are supposed to use the same connections as the VMs ...
How did you get to the point where you try to edit the file?
Patrick. The jail is up and running. I have enabled SSH and created a password from the shell using your commands. I can SSH the root of mycloud jail using its static IP. However it will not accept the password and it denies me access. Therefore, I’m unable to edit its config file that would grant me full access like I have at the root of the server.How did you enable SSH in the jail? Apart from that I have no idea at the moment. If the jail does not start ...
iocage console mycloud
That is exactly what I did and it does not allow me to edit the config file.You can change into the jail from the server:iocage console mycloud
Then you should be able to edit sshd_config, restart sshd and finally log on.
PDF document attached providing a Recap of the process I used with the command used. I very much appreciate your time helping me out. Many thanks again--AlainPlease show the exact commands you are using - thanks.
vi /etc/ssh/sshd_config
. If you want to use vi. "nano" is an easier to use alternative.nano /etc/ssh/sshd_config (the nano command is not recognized)You tried to start the config file as an executable command, hence the "permission denied" message. The file does not have the "execute" permision set.
The syntax isvi /etc/ssh/sshd_config
. If you want to use vi. "nano" is an easier to use alternative.
nano /mnt/<your pool>/iocage/jails/mycloud/root/etc/ssh/sshd_config
Patrick - very sorry to bother you again, but the Directory does not exist?? -- Look at the 2 pictures attachedOh, I'm sorry. nano is only avaliable on the host system and not on a freshly installed FreeBSD. We can add it to the jail later because you are going to need an editor. vi is ... special. Hit ESC ":" "q" "!" Enter in that order to leave it. Then exit the jail ("exit") and we can edit with nano from the host:
nano /mnt/<your pool>/iocage/jails/mycloud/root/etc/ssh/sshd_config
Then stop and start the jail again with iocage - all should be fine, now.
vi tutorial if you are curious:
If you ask yourself "why?"- vi is from the seventies and was invented for the computing power and the ASCII terminals of the time. Hasn't changed much, since. Like many things in Unix.
You ommitted an "etc/" in that path. You can use the TAB key to have directory names auto expand on the shell, e.g.
vi /mn TAB V TAB ioc TAB j TAB my TAB r TAB et TAB ssh TAB sshd TAB Enter.
If nothing happens at pressing TAB, then what you typed so far is not yet unambiguous.
Patrick---here is what is available after /mycloud/ ?? using the TAB - I got into the Config.json file with nano editor. Did not change nothingYou ommitted an "etc/" in that path. You can use the TAB key to have directory names auto expand on the shell, e.g.
vi /mn TAB V TAB ioc TAB j TAB my TAB r TAB et TAB ssh TAB sshd TAB Enter.
If nothing happens at pressing TAB, then what you typed so far is not yet unambiguous.