SSH on FreeBSD

Jerry jerry at seibercom.net
Tue Jan 15 11:24:46 UTC 2013


On Tue, 15 Jan 2013 10:52:04 +0000
Matthew Seaman articulated:

> On 15/01/2013 10:10, Mannase Nyathi wrote:
> > I have just configured FreeBSD on my server. I would like to find
> > out how can I be able to login to it via ssh?
> 
> Start by editing /etc/rc.conf and add the line:
> 
> sshd_enable="YES"
> 
> (anywhere in the file -- order doesn't matter)
> 
> Then as root:
> 
>    /etc/rc.d/sshd start
> 
> It should generate some host keys and then start the sshd daemon.
> 
> That's all.  sshd will restart automatically after any reboots.  You
> should be able to log into any ordinary user account remotely using
> the account username and password.
> 
> Note: if your system is exposed to the internet, it will be attacked
> by bots attempting to brute-force SSH username and passwords.  Make
> sure you have good passwords on all user accounts -- see the archives
> of this list for many, many discussions of further steps you can take
> to prevent this activity filling up your logfiles...

You might want to consider using certificates rather than 'usernames'
'passwords' for logging in. Your system will be far more secure. As
Matthew stated, you can check the archives. If needed, start a new
thread and ask for assistance on the subject here.

-- 
Jerry ♔

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________



More information about the freebsd-questions mailing list