v4.0 for beginer -> sshd howto start/open?

Questions about the installation of FreeBSD

v4.0 for beginer -> sshd howto start/open?

Postby netuser » Tue Oct 07, 2014 9:10 am

Hi,
just installed v4.0 but SSHD service seem to be disabled/not started -> how to activate it to allow remote login to the machine?

Regards,
NU.
netuser
 
Posts: 7
Joined: Tue Oct 07, 2014 9:01 am

v4.0 for beginer -> sshd howto start/open?

 

Re: v4.0 for beginer -> sshd howto start/open?

Postby mzs_47 » Tue Oct 07, 2014 9:25 am

netuser wrote:Hi,
just installed v4.0 but SSHD service seem to be disabled/not started -> how to activate it to allow remote login to the machine?

Regards,
NU.


Refer section 14.8.2 "Enabling SSH server" -> https://www.freebsd.org/doc/handbook/openssh.html

After above steps, you can use following command to confirm whether it is running or not.

Code: Select all
ps -ef|grep sshd


If the above does not work use:

Code: Select all
ps aux |grep sshd

gBSD is based on FreeBSD and the manual is best place to look for.
mzs_47
 
Posts: 7
Joined: Sun Feb 16, 2014 10:07 am

Re: v4.0 for beginer -> sshd howto start/open?

Postby netuser » Tue Oct 07, 2014 9:35 am

ok,
thank you - yes it worked - it's basically about the:

Enabling the SSH Server = check /etc/rc.conf for this line and add it if it is missing:

sshd_enable="YES"

This will start sshd, the daemon program for OpenSSH, the next time the system boots. To start it now:

# service sshd start


I've also found that trick usefull:
It is a good idea to limit which users can log into the SSH server and from where using the AllowUsers keyword in the OpenSSH server configuration file. For example, to only allow root to log in from 192.168.1.32, add this line to /etc/ssh/sshd_config:

AllowUsers root@192.168.1.32


Thank and regards,
NU.
netuser
 
Posts: 7
Joined: Tue Oct 07, 2014 9:01 am


Return to Installing GhostBSD

Who is online

Users browsing this forum: No registered users and 1 guest

cron