SSH Jail issue

Status
Not open for further replies.

The Apprentice

Dabbler
Joined
Aug 10, 2012
Messages
13
Hello all,

I installed a new jail in Freenas to run my web server...
As there isn't any PBI for webserver yet, i had to do it all manually.

So far i managed to update the port tree and set the host name OK.

I tied to active ssh and set
Code:
sshd_enable="YES"


when i first started
service sshd start i di get the following:

Code:
webserver# service sshd start
SELECT ssh_host_key from services_ssh: not found
SELECT ssh_host_key_pub from services_ssh: not found
SELECT ssh_host_dsa_key from services_ssh: not found
SELECT ssh_host_dsa_key_pub from services_ssh: not found
SELECT ssh_host_ecdsa_key from services_ssh: not found
SELECT ssh_host_ecdsa_key_pub from services_ssh: not found
SELECT ssh_host_rsa_key from services_ssh: not found
SELECT ssh_host_rsa_key_pub from services_ssh: not found
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is:
fb:7e:a2:54:5e:3f:e7:46:9b:e5:b8:af:6c:2f:d7:28 root@webserver
The key's randomart image is:
+--[RSA1 1024]----+
|                 |
|                 |
|                 |
|                 |
|        S . .    |
|         + . .  o|
|        o .   o=*|
|       . .. E.=*=|
|        .ooo o+O+|
+-----------------+
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
56:af:d1:7b:00:9f:f7:66:9d:14:93:f2:9b:1a:c5:a8 root@webserver
The key's randomart image is:
+--[ DSA 1024]----+
|                 |
|                .|
|          o  . + |
|         . = .= o|
|        S . *..= |
|       .   o.+o.=|
|          .E...+=|
|             .oo |
|             .   |
+-----------------+
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
8e:3c:4a:9e:25:5d:9c:79:12:c4:47:81:3c:07:82:5d root@webserver
The key's randomart image is:
+--[ RSA 2048]----+
|     o.+E+o.     |
|    . .o= o      |
|        .+       |
|       . +       |
|        S .      |
|     o + o       |
|    o * .        |
|   o = .         |
|    +            |
+-----------------+
Starting sshd.


As i was unable to login with my user i did

service sshd restart and got

Code:
Stopping sshd.
SELECT ssh_host_key from services_ssh: not found
SELECT ssh_host_key_pub from services_ssh: not found
SELECT ssh_host_dsa_key from services_ssh: not found
SELECT ssh_host_dsa_key_pub from services_ssh: not found
SELECT ssh_host_ecdsa_key from services_ssh: not found
SELECT ssh_host_ecdsa_key_pub from services_ssh: not found
SELECT ssh_host_rsa_key from services_ssh: not found
SELECT ssh_host_rsa_key_pub from services_ssh: not found
Starting sshd.


but everithing is there

Code:
webserver# cd /etc/ssh/
webserver# ls
moduli                  ssh_host_dsa_key        ssh_host_key            ssh_host_rsa_key        sshd_config
ssh_config              ssh_host_dsa_key.pub    ssh_host_key.pub        ssh_host_rsa_key.pub


Has anyone know why?

Thank you all

Fred
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
This may be a stupid question but why don't you just SSH into the FreeNAS and then get into the jail, the same way I assume you added the web server into the jail. Okay, let me ask you this since I'm making an assumption that you added the web server into the jail, did you add the web server to the jail? If so, how did you access the jail to do this? I'm asking so I know you have done it properly, not because I don't know how.

-Joe
 

The Apprentice

Dabbler
Joined
Aug 10, 2012
Messages
13
Hi,
I did Ssh to my freenas box n then jexexc to my jail.
Them done all port update, username.. Then installed Nginx
 

The Apprentice

Dabbler
Joined
Aug 10, 2012
Messages
13
Sorry for the long delay in replying, i have been away..

No i haven't created a user in the Jail, will try that and post the update:)

Thank you

- - - Updated - - -

Ok.. I just added a user and put it in the wheel group....
As soon as i do
Code:
sshd restart
i get the same message

Code:
webserver# service sshd restart
Stopping sshd.
SELECT ssh_host_key from services_ssh: not found
SELECT ssh_host_key_pub from services_ssh: not found
SELECT ssh_host_dsa_key from services_ssh: not found
SELECT ssh_host_dsa_key_pub from services_ssh: not found
SELECT ssh_host_ecdsa_key from services_ssh: not found
SELECT ssh_host_ecdsa_key_pub from services_ssh: not found
SELECT ssh_host_rsa_key from services_ssh: not found
SELECT ssh_host_rsa_key_pub from services_ssh: not found
Starting sshd.
 
J

James

Guest
How did you install the jail? Does reinstalling the jail PBI fix the issue?
 
Status
Not open for further replies.
Top