ssh into FreeNAS jail - Connection refused

Status
Not open for further replies.

balanga

Patron
Joined
Jul 10, 2014
Messages
271
I have just created a FreeBSD jail under FreeNAS but get 'Connection refused' when trying to connect using ssh.

Seems I have overlooked something obvious, but can't think what. I ran

service sshd restart from within the jail, but I'm not sure that sshd is actually running.

How can I tell?
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Service sshd status will show you if it's running or not. You might have to modify /etc/rc.conf to auto start and also sshd_conf to enable root login.
 

balanga

Patron
Joined
Jul 10, 2014
Messages
271
I have just created a FreeBSD jail under FreeNAS but get 'Connection refused' when trying to connect using ssh.

Seems I have overlooked something obvious, but can't think what. I ran

service sshd restart from within the jail, but I'm not sure that sshd is actually running.

How can I tell?

The problem turned out to be due to having two machines on the network with the same IP address. I had assigned an IP address to my FreeBSD jail which was already in use on the network, so that I was ssh'ing into the wrong box - ie one which was not running sshd. No wonder I got connection refused :)
 
Status
Not open for further replies.
Top