FlyDiver
Cadet
- Joined
- Jun 24, 2013
- Messages
- 2
Hello All,
I am having a problem in which I hope there are people who can help me.
Have recently build a back-up storage (iSCSI 4x2T Raid5) with FreeNAS 8.3.1p2 on flash-drive which I want to power on/off remotely.
With CentOS VM and a Wake On Lan script found on the Internet I'm able to startup the storage.
Unfortunately I'm not able to power-off the storage remotely by a command such as “ssh ssh_private_key root@IP-address poweroff”.
As written in the manual are for security reasons, the root password, the SSH service, and root SSH logins all disabled by default in the used release of FreeNAS.
Therefore also not permitted to store the public ssh key on FreeNAS operating system.
When logged in as a user I haven't the permission to use the "poweroff" or "shutdown-p now" command.
Wouldn't it be nice when the developping team of FreeNAS will give users some root ssh privileges that at least a remote power-off will be possible?.
Found suggestions on the Internet to shutdown FreeNAS by itself with a Cron job doesn't give any result.
VMware host doesn't support pass through configuration, so using CentOS and an USB Relay switch is also not an option.
Is there someone on the forum who can help with the right solution, other than suggest to use a second physic system with USB Relay to solve this problem.
I am having a problem in which I hope there are people who can help me.
Have recently build a back-up storage (iSCSI 4x2T Raid5) with FreeNAS 8.3.1p2 on flash-drive which I want to power on/off remotely.
With CentOS VM and a Wake On Lan script found on the Internet I'm able to startup the storage.
Unfortunately I'm not able to power-off the storage remotely by a command such as “ssh ssh_private_key root@IP-address poweroff”.
As written in the manual are for security reasons, the root password, the SSH service, and root SSH logins all disabled by default in the used release of FreeNAS.
Therefore also not permitted to store the public ssh key on FreeNAS operating system.
When logged in as a user I haven't the permission to use the "poweroff" or "shutdown-p now" command.
Wouldn't it be nice when the developping team of FreeNAS will give users some root ssh privileges that at least a remote power-off will be possible?.
Found suggestions on the Internet to shutdown FreeNAS by itself with a Cron job doesn't give any result.
VMware host doesn't support pass through configuration, so using CentOS and an USB Relay switch is also not an option.
Is there someone on the forum who can help with the right solution, other than suggest to use a second physic system with USB Relay to solve this problem.